comparison cagou/plugins/plugin_wid_widget_selector.kv @ 179:7177fe2d9725

common: new ActionIcon widget which display symbol or image icon according to what is specified in plugin_info
author Goffi <goffi@goffi.org>
date Tue, 01 May 2018 20:48:48 +0200
parents 6a288d4a493f
children 1b835bcfa663
comparison
equal deleted inserted replaced
178:11ff8cd93659 179:7177fe2d9725
21 Widget: 21 Widget:
22 BoxLayout: 22 BoxLayout:
23 id: item 23 id: item
24 size_hint: None, 1 24 size_hint: None, 1
25 spacing: dp(10) 25 spacing: dp(10)
26 Image: 26 ActionIcon:
27 source: root.plugin_info["icon_medium"] 27 plugin_info: root.plugin_info
28 allow_stretch: True
29 keep_ratio: True
30 size_hint: None, 1 28 size_hint: None, 1
29 width: self.height
31 Label: 30 Label:
32 text: root.plugin_info["name"] 31 text: root.plugin_info["name"]
33 bold: True 32 bold: True
34 valign: 'middle' 33 valign: 'middle'
35 font_size: sp(20) 34 font_size: sp(20)