Mercurial > libervia-desktop-kivy
comparison cagou/kv/cagou_widget.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 | d65a51fa00b9 |
children | a676cb07c1cb |
comparison
equal
deleted
inserted
replaced
178:11ff8cd93659 | 179:7177fe2d9725 |
---|---|
25 source: 'atlas://data/images/defaulttheme/button' | 25 source: 'atlas://data/images/defaulttheme/button' |
26 size_hint_y: None | 26 size_hint_y: None |
27 height: dp(44) | 27 height: dp(44) |
28 spacing: dp(20) | 28 spacing: dp(20) |
29 padding: dp(5), dp(3), dp(10), dp(3) | 29 padding: dp(5), dp(3), dp(10), dp(3) |
30 Image: | 30 ActionIcon: |
31 plugin_info: root.plugin_info | |
31 size_hint: None, 1 | 32 size_hint: None, 1 |
32 source: root.plugin_info['icon_medium'] | |
33 allow_stretch: True | |
34 width: self.height | 33 width: self.height |
35 Label: | 34 Label: |
36 size_hint: None, 1 | 35 size_hint: None, 1 |
37 text: root.plugin_info['name'] | 36 text: root.plugin_info['name'] |
38 color: 1, 1, 1, 1 | 37 color: 1, 1, 1, 1 |
58 id: header_box | 57 id: header_box |
59 size_hint: 1, None | 58 size_hint: 1, None |
60 height: dp(32) | 59 height: dp(32) |
61 spacing: dp(3) | 60 spacing: dp(3) |
62 HeaderWidgetCurrent: | 61 HeaderWidgetCurrent: |
62 plugin_info: root.plugin_info | |
63 size_hint: None, 1 | |
64 width: self.height | |
63 on_release: root.selector.open(self) | 65 on_release: root.selector.open(self) |
64 source: root.plugin_info['icon_small'] | |
65 size_hint: None, 1 | |
66 allow_stretch: True | |
67 width: self.height | |
68 TextInput: | 66 TextInput: |
69 id: header_input | 67 id: header_input |
70 background_normal: app.expand('{media}/misc/borders/border_hollow_light.png') | 68 background_normal: app.expand('{media}/misc/borders/border_hollow_light.png') |
71 multiline: False | 69 multiline: False |
72 on_text_validate: root.onHeaderInput() | 70 on_text_validate: root.onHeaderInput() |