Browse Source

kivy: improve 'receive' layout

283
ThomasV 9 years ago
parent
commit
04a2c03c28
  1. 2
      gui/kivy/main.kv
  2. 23
      gui/kivy/uix/ui_screens/receive.kv
  3. 1
      gui/kivy/uix/ui_screens/send.kv

2
gui/kivy/main.kv

@ -75,7 +75,7 @@
Color: Color:
rgba: .238, .585, .878, 1 rgba: .238, .585, .878, 1
BorderImage: BorderImage:
border: 9, 9, 9, 9 #border: 9, 9, 9, 9
source: 'atlas://gui/kivy/theming/light/card_bottom' source: 'atlas://gui/kivy/theming/light/card_bottom'
size: self.size size: self.size
pos: self.pos pos: self.pos

23
gui/kivy/uix/ui_screens/receive.kv

@ -37,18 +37,27 @@ ReceiveScreen:
on_touch_down: on_touch_down:
self.shaded = not self.shaded self.shaded = not self.shaded
self.foreground_color = (0, 0, 0, 0.5) if self.shaded else (0, 0, 0, 0) self.foreground_color = (0, 0, 0, 0.5) if self.shaded else (0, 0, 0, 0)
Label:
id: address_label
size_hint: 1, None
height: '48dp'
opacity: 0.5 if qr.shaded else 1
text: _('Bitcoin Address') + ': ' + s.address
text_size: self.width, None
SendReceiveBlueBottom: SendReceiveBlueBottom:
id: blue_bottom id: blue_bottom
size_hint: 1, None size_hint: 1, None
height: self.minimum_height height: self.minimum_height
BoxLayout:
size_hint: 1, None
height: blue_bottom.item_height
spacing: '5dp'
Image:
source: 'atlas://gui/kivy/theming/light/contact'
size_hint: None, None
size: '22dp', '22dp'
pos_hint: {'center_y': .5}
BlueButton:
id: address_label
text: s.address if s.address else _('Bitcoin Address')
shorten: True
CardSeparator:
opacity: message_selection.opacity
color: blue_bottom.foreground_color
BoxLayout: BoxLayout:
size_hint: 1, None size_hint: 1, None
height: blue_bottom.item_height height: blue_bottom.item_height

1
gui/kivy/uix/ui_screens/send.kv

@ -35,6 +35,7 @@ SendScreen:
id: payto_e id: payto_e
text: s.address if s.address else _('Recipient') text: s.address if s.address else _('Recipient')
on_release: app.address_dialog(s) on_release: app.address_dialog(s)
shorten: True
CardSeparator: CardSeparator:
opacity: message_selection.opacity opacity: message_selection.opacity
color: blue_bottom.foreground_color color: blue_bottom.foreground_color

Loading…
Cancel
Save