comparison cagou/kv/xmlui.kv @ 251:1f579baf787a

xmlui: some design improvments + use ScrollView + BoxLayout instead of DropDown for ListWidget: there are some trouble with the ScrollView inside the ScrollView which need to be addressed
author Goffi <goffi@goffi.org>
date Sat, 26 Jan 2019 20:24:48 +0100
parents d535446fdf45
children 1b835bcfa663
comparison
equal deleted inserted replaced
250:ff1efdeff53f 251:1f579baf787a
25 height: dp(common_height) 25 height: dp(common_height)
26 color: 1, 1, 1, 1 26 color: 1, 1, 1, 1
27 27
28 28
29 <TextWidget,LabelWidget,JidWidget>: 29 <TextWidget,LabelWidget,JidWidget>:
30 size_hint: 1, None 30 size_hint: 1, 1
31 size_hint_min_y: max(dp(common_height), self.texture_size[1])
31 text_size: self.width, None 32 text_size: self.width, None
32 height: max(dp(common_height), self.texture_size[1])
33 color: 1, 1, 1, 1 33 color: 1, 1, 1, 1
34 34
35 35
36 <StringWidget,PasswordWidget,IntWidget>: 36 <StringWidget,PasswordWidget,IntWidget>:
37 multiline: False 37 multiline: False
68 height: dp(button_height) 68 height: dp(button_height)
69 69
70 70
71 <ListWidget>: 71 <ListWidget>:
72 size_hint: 1, None 72 size_hint: 1, None
73 height: dp(button_height) 73 layout: layout
74 height: min(layout.minimum_height, dp(250))
75 do_scroll_x: False
76 scroll_type: ['bars', 'content']
77 bar_width: dp(6)
78 BoxLayout:
79 id: layout
80 size_hint: 1, None
81 height: self.minimum_height
82 orientation: "vertical"
83 padding: dp(10)
74 84
75 85
76 <AdvancedListRow>: 86 <AdvancedListRow>:
77 canvas.before: 87 canvas.before:
78 Color: 88 Color:
112 122
113 <PairsContainer>: 123 <PairsContainer>:
114 cols: 2 124 cols: 2
115 size_hint: 1, None 125 size_hint: 1, None
116 height: self.minimum_height 126 height: self.minimum_height
127 padding: dp(10)
117 128
118 129
119 <TabsContainer>: 130 <TabsContainer>:
120 size_hint: 1, 1 131 size_hint: 1, 1
121 132