comparison cagou/plugins/plugin_wid_chat.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 c466678c57b2
children 13884aac1220
comparison
equal deleted inserted replaced
415:5761b5f03c0c 416:3e2333a11f61
44 Color: 44 Color:
45 rgb: app.c_sec_light 45 rgb: app.c_sec_light
46 RoundedRectangle: 46 RoundedRectangle:
47 pos: self.x + dp(1), self.y + dp(1) 47 pos: self.x + dp(1), self.y + dp(1)
48 size: (self.width - dp(2)) * root.progress / 100, self.height - dp(2) 48 size: (self.width - dp(2)) * root.progress / 100, self.height - dp(2)
49 SymbolLabel: 49 SymbolButtonLabel:
50 symbol: root.get_symbol(root.data) 50 symbol: root.get_symbol(root.data)
51 color: 0, 0, 0, 1 51 color: 0, 0, 0, 1
52 text: root.data.get('name', _('unnamed')) 52 text: root.data.get('name', _('unnamed'))
53 bold: False 53 bold: False
54 on_press: root.on_press() 54 on_press: root.on_press()