Mercurial > libervia-desktop-kivy
comparison cagou/kv/xmlui.kv @ 236:ca86954b3788
xmlui: implemented TextBoxWidget + set height for XMLUIPanel
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 31 Aug 2018 16:58:15 +0200 |
parents | 38da086d162b |
children | 661b9cf7b4e4 |
comparison
equal
deleted
inserted
replaced
235:525527a01439 | 236:ca86954b3788 |
---|---|
26 height: dp(common_height) | 26 height: dp(common_height) |
27 color: 1, 1, 1, 1 | 27 color: 1, 1, 1, 1 |
28 | 28 |
29 | 29 |
30 <StringWidget,PasswordWidget,IntWidget>: | 30 <StringWidget,PasswordWidget,IntWidget>: |
31 multiline: False | |
32 background_normal: app.expand('atlas://data/images/defaulttheme/textinput') | |
31 | 33 |
32 background_normal: app.expand('atlas://data/images/defaulttheme/textinput') | 34 |
35 <TextBoxWidget>: | |
36 multiline: True | |
37 height: dp(common_height) * 5 | |
33 | 38 |
34 | 39 |
35 <ButtonWidget>: | 40 <ButtonWidget>: |
36 size_hint: 1, None | 41 size_hint: 1, None |
37 height: dp(button_height) | 42 height: dp(button_height) |
127 text: "cancel" | 132 text: "cancel" |
128 on_release: root.onCancel() | 133 on_release: root.onCancel() |
129 | 134 |
130 | 135 |
131 <XMLUIPanel>: | 136 <XMLUIPanel>: |
137 height: self.minimum_height | |
132 canvas.before: | 138 canvas.before: |
133 Color: | 139 Color: |
134 rgba: 0, 0, 0, 1 | 140 rgba: 0, 0, 0, 1 |
135 Rectangle: | 141 Rectangle: |
136 pos: self.pos | 142 pos: self.pos |