mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 00:11:36 +00:00
110 lines
4 KiB
Text
110 lines
4 KiB
Text
#:import _ electrum.gui.kivy.i18n._
|
|
#:import Decimal decimal.Decimal
|
|
#:set btc_symbol chr(171)
|
|
#:set mbtc_symbol chr(187)
|
|
#:set font_light 'electrum/gui/kivy/data/fonts/Roboto-Condensed.ttf'
|
|
|
|
|
|
|
|
ReceiveScreen:
|
|
id: s
|
|
name: 'receive'
|
|
address: ''
|
|
amount: ''
|
|
message: ''
|
|
status: ''
|
|
is_lightning: False
|
|
|
|
BoxLayout
|
|
padding: '12dp', '12dp', '12dp', '12dp'
|
|
spacing: '12dp'
|
|
orientation: 'vertical'
|
|
|
|
SendReceiveBlueBottom:
|
|
id: blue_bottom
|
|
size_hint: 1, None
|
|
height: self.minimum_height
|
|
BoxLayout:
|
|
size_hint: 1, None
|
|
height: blue_bottom.item_height
|
|
spacing: '5dp'
|
|
Image:
|
|
source: 'atlas://electrum/gui/kivy/theming/light/globe'
|
|
size_hint: None, None
|
|
size: '22dp', '22dp'
|
|
pos_hint: {'center_y': .5}
|
|
BlueButton:
|
|
id: address_label
|
|
text: _('Lightning') if root.is_lightning else (s.address if s.address else _('Bitcoin Address'))
|
|
shorten: True
|
|
#on_release: Clock.schedule_once(lambda dt: app.addresses_dialog(s))
|
|
on_release:
|
|
root.is_lightning = not root.is_lightning
|
|
CardSeparator:
|
|
opacity: message_selection.opacity
|
|
color: blue_bottom.foreground_color
|
|
BoxLayout:
|
|
size_hint: 1, None
|
|
height: blue_bottom.item_height
|
|
spacing: '5dp'
|
|
Image:
|
|
source: 'atlas://electrum/gui/kivy/theming/light/calculator'
|
|
opacity: 0.7
|
|
size_hint: None, None
|
|
size: '22dp', '22dp'
|
|
pos_hint: {'center_y': .5}
|
|
BlueButton:
|
|
id: amount_label
|
|
default_text: _('Amount')
|
|
text: s.amount if s.amount else _('Amount')
|
|
on_release: Clock.schedule_once(lambda dt: app.amount_dialog(s, False))
|
|
CardSeparator:
|
|
opacity: message_selection.opacity
|
|
color: blue_bottom.foreground_color
|
|
BoxLayout:
|
|
id: message_selection
|
|
opacity: 1
|
|
size_hint: 1, None
|
|
height: blue_bottom.item_height
|
|
spacing: '5dp'
|
|
Image:
|
|
source: 'atlas://electrum/gui/kivy/theming/light/pen'
|
|
size_hint: None, None
|
|
size: '22dp', '22dp'
|
|
pos_hint: {'center_y': .5}
|
|
BlueButton:
|
|
id: description
|
|
text: s.message if s.message else _('Description')
|
|
on_release: Clock.schedule_once(lambda dt: app.description_dialog(s))
|
|
BoxLayout:
|
|
size_hint: 1, None
|
|
height: '48dp'
|
|
IconButton:
|
|
icon: 'atlas://electrum/gui/kivy/theming/light/list'
|
|
size_hint: 1, None
|
|
height: '48dp'
|
|
on_release: Clock.schedule_once(lambda dt: app.requests_dialog(s))
|
|
#Widget:
|
|
# size_hint: 0.5, 1
|
|
Button:
|
|
text: _('Clear')
|
|
size_hint: 1, None
|
|
height: '48dp'
|
|
on_release: Clock.schedule_once(lambda dt: s.parent.clear())
|
|
Button:
|
|
text: _('Request')
|
|
size_hint: 1, None
|
|
height: '48dp'
|
|
on_release: Clock.schedule_once(lambda dt: s.parent.new_request(root.is_lightning))
|
|
Widget:
|
|
size_hint: 1, 1
|
|
#BoxLayout:
|
|
# size_hint: 1, None
|
|
# height: '48dp'
|
|
# IconButton:
|
|
# icon: 'atlas://electrum/gui/kivy/theming/light/list'
|
|
# size_hint: 0.5, None
|
|
# height: '48dp'
|
|
# on_release: Clock.schedule_once(lambda dt: app.requests_dialog(s))
|
|
# Widget:
|
|
# size_hint: 2.5, 1
|