Browse Source

kivy: improve layouts

283
ThomasV 9 years ago
parent
commit
3e8cbdfba2
  1. 10
      gui/kivy/uix/ui_screens/password.kv
  2. 14
      gui/kivy/uix/ui_screens/settings.kv

10
gui/kivy/uix/ui_screens/password.kv

@ -5,23 +5,23 @@ Popup:
BoxLayout:
orientation: 'vertical'
size_hint: 1, None
GridLayout:
size_hint: 1, None
cols: 2
Label:
text: 'Password'
size_hint: 1, None
height: '48dp'
TextInput:
id: text_input
size_hint: 1, None
password: True
multiline: False
Button:
size_hint_y: None
size_hint: 1, None
height: '48dp'
text: _('Close')
on_release: pw.dismiss()
Widget:
size_hint_y: 1
size_hint: 1, 1

14
gui/kivy/uix/ui_screens/settings.kv

@ -5,7 +5,6 @@ Popup:
BoxLayout:
orientation: 'vertical'
size_hint: 1, None
GridLayout:
cols: 2
@ -16,6 +15,7 @@ Popup:
Spinner:
text: 'BTC'
values: ('BTC', 'mBTC')
size_hint: 1, None
height: '48dp'
Label:
@ -24,12 +24,14 @@ Popup:
height: '48dp'
TextInput:
size_hint: 1, None
height: '48dp'
multiline: False
Button:
#size_hint_y: None
size_hint: 1, None
height: '48dp'
text: _('Close')
on_release: settings.dismiss()
#Widget:
# size_hint_y: None
Widget:
size_hint: 1, 1

Loading…
Cancel
Save