Mercurial > libervia-desktop-kivy
diff 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 |
line wrap: on
line diff
--- a/cagou/kv/common.kv Sun Feb 23 15:39:06 2020 +0100 +++ b/cagou/kv/common.kv Sun Feb 23 17:13:15 2020 +0100 @@ -133,6 +133,15 @@ text: root.text bold: root.bold +<SymbolToggleLabel>: + color: 0, 0, 0, 1 + canvas.before: + Color: + rgba: app.c_sec_light if self.state == 'down' else (0, 0, 0, 0) + RoundedRectangle: + pos: self.pos + size: self.size + <ActionSymbol>: bg_color: 0, 0, 0, 0 color: app.c_sec_light