Mercurial > libervia-desktop-kivy
comparison src/cagou/kv/cagou_widget.kv @ 36:bd3ecac18870
cagou widget, root widget: used of dp to specify distances
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 28 Aug 2016 15:27:42 +0200 |
parents | e77b616d3fae |
children | 35abe494e6c7 |
comparison
equal
deleted
inserted
replaced
35:20b04c58868f | 36:bd3ecac18870 |
---|---|
22 BorderImage: | 22 BorderImage: |
23 pos: self.pos | 23 pos: self.pos |
24 size: self.size | 24 size: self.size |
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: 44 | 27 height: dp(44) |
28 Image: | 28 Image: |
29 size_hint: None, 1 | 29 size_hint: None, 1 |
30 source: root.plugin_info['icon_medium'] | 30 source: root.plugin_info['icon_medium'] |
31 allow_stretch: True | 31 allow_stretch: True |
32 width: self.texture_size[0]*self.height/self.texture_size[1] | 32 width: self.texture_size[0]*self.height/self.texture_size[1] |
44 | 44 |
45 <CagouWidget>: | 45 <CagouWidget>: |
46 header_input: header_input | 46 header_input: header_input |
47 BoxLayout: | 47 BoxLayout: |
48 size_hint: 1, None | 48 size_hint: 1, None |
49 height: 32 | 49 height: dp(32) |
50 HeaderWidgetCurrent: | 50 HeaderWidgetCurrent: |
51 on_release: root.selector.open(self) | 51 on_release: root.selector.open(self) |
52 source: root.plugin_info['icon_small'] | 52 source: root.plugin_info['icon_small'] |
53 size_hint: None, 1 | 53 size_hint: None, 1 |
54 allow_stretch: True | 54 allow_stretch: True |