mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
kivy: fix layout of addresses dialog
This commit is contained in:
parent
eadd5d58e8
commit
c2f9c5fb1b
2 changed files with 22 additions and 21 deletions
|
@ -285,25 +285,6 @@
|
||||||
size: self.size
|
size: self.size
|
||||||
pos: self.pos
|
pos: self.pos
|
||||||
|
|
||||||
<AddressButton@Button>:
|
|
||||||
background_color: 1, .585, .878, 0
|
|
||||||
halign: 'center'
|
|
||||||
text_size: (self.width, None)
|
|
||||||
shorten: True
|
|
||||||
size_hint: 0.5, None
|
|
||||||
default_text: ''
|
|
||||||
text: self.default_text
|
|
||||||
padding: '5dp', '5dp'
|
|
||||||
height: '40dp'
|
|
||||||
text_color: self.foreground_color
|
|
||||||
disabled_color: 1, 1, 1, 1
|
|
||||||
foreground_color: 1, 1, 1, 1
|
|
||||||
canvas.before:
|
|
||||||
Color:
|
|
||||||
rgba: (0.9, .498, 0.745, 1) if self.state == 'down' else self.background_color
|
|
||||||
Rectangle:
|
|
||||||
size: self.size
|
|
||||||
pos: self.pos
|
|
||||||
|
|
||||||
<KButton@Button>:
|
<KButton@Button>:
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
|
|
|
@ -41,6 +41,26 @@ Builder.load_string('''
|
||||||
shorten: True
|
shorten: True
|
||||||
Widget
|
Widget
|
||||||
|
|
||||||
|
<AddressButton@Button>:
|
||||||
|
background_color: 1, .585, .878, 0
|
||||||
|
halign: 'center'
|
||||||
|
text_size: (self.width, None)
|
||||||
|
shorten: True
|
||||||
|
size_hint: 0.5, None
|
||||||
|
default_text: ''
|
||||||
|
text: self.default_text
|
||||||
|
padding: '5dp', '5dp'
|
||||||
|
height: '40dp'
|
||||||
|
text_color: self.foreground_color
|
||||||
|
disabled_color: 1, 1, 1, 1
|
||||||
|
foreground_color: 1, 1, 1, 1
|
||||||
|
canvas.before:
|
||||||
|
Color:
|
||||||
|
rgba: (0.9, .498, 0.745, 1) if self.state == 'down' else self.background_color
|
||||||
|
Rectangle:
|
||||||
|
size: self.size
|
||||||
|
pos: self.pos
|
||||||
|
|
||||||
<AddressesDialog@Popup>
|
<AddressesDialog@Popup>
|
||||||
id: popup
|
id: popup
|
||||||
title: _('Addresses')
|
title: _('Addresses')
|
||||||
|
@ -52,12 +72,12 @@ Builder.load_string('''
|
||||||
self.update()
|
self.update()
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
id:box
|
id:box
|
||||||
padding: '12dp', '70dp', '12dp', '12dp'
|
padding: '12dp', '12dp', '12dp', '12dp'
|
||||||
spacing: '12dp'
|
spacing: '12dp'
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
size_hint: 1, 1.1
|
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
spacing: '6dp'
|
spacing: '6dp'
|
||||||
|
height: self.minimum_height
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
orientation: 'horizontal'
|
orientation: 'horizontal'
|
||||||
AddressFilter:
|
AddressFilter:
|
||||||
|
|
Loading…
Add table
Reference in a new issue