kivy: improve layouts
This commit is contained in:
parent
a199061462
commit
3e8cbdfba2
|
@ -5,23 +5,23 @@ Popup:
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
|
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
size_hint: 1, None
|
|
||||||
|
|
||||||
GridLayout:
|
GridLayout:
|
||||||
size_hint: 1, None
|
|
||||||
cols: 2
|
cols: 2
|
||||||
Label:
|
Label:
|
||||||
text: 'Password'
|
text: 'Password'
|
||||||
|
size_hint: 1, None
|
||||||
height: '48dp'
|
height: '48dp'
|
||||||
TextInput:
|
TextInput:
|
||||||
id: text_input
|
id: text_input
|
||||||
password:True
|
size_hint: 1, None
|
||||||
|
password: True
|
||||||
|
multiline: False
|
||||||
Button:
|
Button:
|
||||||
size_hint_y: None
|
size_hint: 1, None
|
||||||
height: '48dp'
|
height: '48dp'
|
||||||
text: _('Close')
|
text: _('Close')
|
||||||
on_release: pw.dismiss()
|
on_release: pw.dismiss()
|
||||||
|
|
||||||
Widget:
|
Widget:
|
||||||
size_hint_y: 1
|
size_hint: 1, 1
|
||||||
|
|
|
@ -5,7 +5,6 @@ Popup:
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
|
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
size_hint: 1, None
|
|
||||||
|
|
||||||
GridLayout:
|
GridLayout:
|
||||||
cols: 2
|
cols: 2
|
||||||
|
@ -16,6 +15,7 @@ Popup:
|
||||||
Spinner:
|
Spinner:
|
||||||
text: 'BTC'
|
text: 'BTC'
|
||||||
values: ('BTC', 'mBTC')
|
values: ('BTC', 'mBTC')
|
||||||
|
size_hint: 1, None
|
||||||
height: '48dp'
|
height: '48dp'
|
||||||
|
|
||||||
Label:
|
Label:
|
||||||
|
@ -24,12 +24,14 @@ Popup:
|
||||||
height: '48dp'
|
height: '48dp'
|
||||||
TextInput:
|
TextInput:
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
|
height: '48dp'
|
||||||
|
multiline: False
|
||||||
Button:
|
Button:
|
||||||
#size_hint_y: None
|
size_hint: 1, None
|
||||||
height: '48dp'
|
height: '48dp'
|
||||||
text: _('Close')
|
text: _('Close')
|
||||||
on_release: settings.dismiss()
|
on_release: settings.dismiss()
|
||||||
#Widget:
|
|
||||||
# size_hint_y: None
|
Widget:
|
||||||
|
size_hint: 1, 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue