comparison cagou/plugins/plugin_wid_widget_selector.kv @ 169:6a288d4a493f

widget selector: replaced deprecated ListView by BoxLayout
author Goffi <goffi@goffi.org>
date Sat, 28 Apr 2018 20:19:53 +0200
parents cd99f70ea592
children 7177fe2d9725
comparison
equal deleted inserted replaced
168:397f2fb67aab 169:6a288d4a493f
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16
17 <WidgetSelItem>: 17 <WidgetSelItem>:
18 size_hint: (1, None) 18 size_hint: (1, None)
19 height: dp(40) 19 height: dp(40)
20 item: item
20 Widget: 21 Widget:
21 Image: 22 BoxLayout:
22 source: root.plugin_info["icon_medium"] 23 id: item
23 allow_stretch: True 24 size_hint: None, 1
24 keep_ratio: True 25 spacing: dp(10)
25 width: self.texture_size[0] 26 Image:
26 Label: 27 source: root.plugin_info["icon_medium"]
27 text: root.plugin_info["name"] 28 allow_stretch: True
28 bold: True 29 keep_ratio: True
29 font_size: sp(20) 30 size_hint: None, 1
31 Label:
32 text: root.plugin_info["name"]
33 bold: True
34 valign: 'middle'
35 font_size: sp(20)
36 size_hint: None, 1
37 width: self.texture_size[0]
30 Widget: 38 Widget:
39
40
41 <WidgetSelector>:
42 spacing: dp(10)