comparison cagou/kv/common.kv @ 218:30be583dbabc

core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
author Goffi <goffi@goffi.org>
date Sun, 24 Jun 2018 22:09:49 +0200
parents 254481ba2bae
children cf61a011f731
comparison
equal deleted inserted replaced
217:286f14127f61 218:30be583dbabc
60 rgba: self.bg_color 60 rgba: self.bg_color
61 Rectangle: 61 Rectangle:
62 pos: self.pos 62 pos: self.pos
63 size: self.size 63 size: self.size
64 64
65 <SymbolLabel>:
66 size_hint: None, 1
67 width: self.minimum_width
68 symbol_wid: symbol_wid
69 label: label
70 Symbol:
71 id: symbol_wid
72 size_hint: None, 1
73 symbol: root.symbol
74 color: root.color
75 Label:
76 id: label
77 size_hint: None, 1
78 text_size: None, root.height
79 size: self.texture_size
80 padding_x: dp(5)
81 valign: 'middle'
82 text: root.text
83 bold: root.bold
84
65 <ActionSymbol>: 85 <ActionSymbol>:
66 bg_color: 0, 0, 0, 0 86 bg_color: 0, 0, 0, 0
67 color: app.c_sec_light 87 color: app.c_sec_light
68 margin: dp(10) 88 margin: dp(10)