mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
kivy: align icons in password_dialog, use IconButton
This commit is contained in:
parent
47b6c2d87f
commit
c80aab7e20
2 changed files with 11 additions and 11 deletions
|
@ -58,6 +58,7 @@
|
||||||
|
|
||||||
<IconButton@Button>:
|
<IconButton@Button>:
|
||||||
icon: ''
|
icon: ''
|
||||||
|
icon_size: '30dp'
|
||||||
AnchorLayout:
|
AnchorLayout:
|
||||||
pos: self.parent.pos
|
pos: self.parent.pos
|
||||||
size: self.parent.size
|
size: self.parent.size
|
||||||
|
@ -65,7 +66,7 @@
|
||||||
Image:
|
Image:
|
||||||
source: self.parent.parent.icon
|
source: self.parent.parent.icon
|
||||||
size_hint_x: None
|
size_hint_x: None
|
||||||
size: '30dp', '30dp'
|
size: root.icon_size, root.icon_size
|
||||||
|
|
||||||
|
|
||||||
<BackgroundColor@Widget>
|
<BackgroundColor@Widget>
|
||||||
|
|
|
@ -58,24 +58,23 @@ Builder.load_string('''
|
||||||
orientation: 'horizontal'
|
orientation: 'horizontal'
|
||||||
id: box_generic_password
|
id: box_generic_password
|
||||||
size_hint_y: 0.05
|
size_hint_y: 0.05
|
||||||
WizardTextInput:
|
height: '40dp'
|
||||||
|
TextInput:
|
||||||
|
height: '40dp'
|
||||||
id: textinput_generic_password
|
id: textinput_generic_password
|
||||||
valign: 'center'
|
valign: 'center'
|
||||||
multiline: False
|
multiline: False
|
||||||
on_text_validate:
|
on_text_validate:
|
||||||
popup.on_password(self.text)
|
popup.on_password(self.text)
|
||||||
password: True
|
password: True
|
||||||
size_hint: 0.9, None
|
size_hint: 0.85, None
|
||||||
unfocus_on_touch: False
|
unfocus_on_touch: False
|
||||||
focus: True
|
focus: True
|
||||||
Button:
|
IconButton:
|
||||||
size_hint: 0.1, None
|
height: '40dp'
|
||||||
valign: 'center'
|
size_hint: 0.15, None
|
||||||
background_normal: 'atlas://electrum/gui/kivy/theming/light/eye1'
|
icon: 'atlas://electrum/gui/kivy/theming/light/eye1'
|
||||||
background_down: self.background_normal
|
icon_size: '40dp'
|
||||||
height: '50dp'
|
|
||||||
width: '50dp'
|
|
||||||
padding: '5dp', '5dp'
|
|
||||||
on_release:
|
on_release:
|
||||||
textinput_generic_password.password = False if textinput_generic_password.password else True
|
textinput_generic_password.password = False if textinput_generic_password.password else True
|
||||||
Widget:
|
Widget:
|
||||||
|
|
Loading…
Add table
Reference in a new issue