Mercurial > libervia-desktop-kivy
comparison cagou/kv/common.kv @ 416:3e2333a11f61
common: implemented SymbolToggleLabel:
- SymbolLabel doesn't do button behaviour anymore
- SymbolButtonLabel does the button behaviour (to use instead of former SymbolLabel)
- SymbolToggleLabel does toggle button behaviour
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 23 Feb 2020 17:13:15 +0100 |
parents | 2a58f3d756ad |
children | efee0e0afb78 |
comparison
equal
deleted
inserted
replaced
415:5761b5f03c0c | 416:3e2333a11f61 |
---|---|
131 padding_x: dp(5) | 131 padding_x: dp(5) |
132 valign: 'middle' | 132 valign: 'middle' |
133 text: root.text | 133 text: root.text |
134 bold: root.bold | 134 bold: root.bold |
135 | 135 |
136 <SymbolToggleLabel>: | |
137 color: 0, 0, 0, 1 | |
138 canvas.before: | |
139 Color: | |
140 rgba: app.c_sec_light if self.state == 'down' else (0, 0, 0, 0) | |
141 RoundedRectangle: | |
142 pos: self.pos | |
143 size: self.size | |
144 | |
136 <ActionSymbol>: | 145 <ActionSymbol>: |
137 bg_color: 0, 0, 0, 0 | 146 bg_color: 0, 0, 0, 0 |
138 color: app.c_sec_light | 147 color: app.c_sec_light |
139 | 148 |
140 | 149 |