electrum-bitcoinprivate/gui/kivy/uix/ui_screens/send.kv

105 lines
3.4 KiB
Plaintext

#:import _ electrum_gui.kivy.i18n._
#:import Decimal decimal.Decimal
#:set btc_symbol unichr(171)
#:set mbtc_symbol unichr(187)
#:set font_light 'gui/kivy/data/fonts/Roboto-Condensed.ttf'
SendScreen:
id: s
name: 'send'
address: ''
amount: ''
message: ''
BoxLayout
padding: '12dp', '12dp', '12dp', '12dp'
spacing: '12dp'
orientation: 'vertical'
SendReceiveBlueBottom:
id: blue_bottom
size_hint: 1, None
height: self.minimum_height
spacing: '5dp'
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: payto_e
text: s.address if s.address else _('Recipient')
on_release: app.address_dialog(s)
shorten: True
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://gui/kivy/theming/light/globe'
size_hint: None, None
size: '22dp', '22dp'
pos_hint: {'center_y': .5}
BlueButton:
id: amount_e
default_text: _('Amount')
text: s.amount if s.amount else _('Amount')
on_release: s.amount_dialog()
CardSeparator:
opacity: message_selection.opacity
color: blue_bottom.foreground_color
BoxLayout:
id: message_selection
size_hint: 1, None
height: blue_bottom.item_height
spacing: '5dp'
Image:
source: 'atlas://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: app.description_dialog(s)
BoxLayout:
size_hint: 1, None
height: '48dp'
Button:
id: qr
text: _('QR Code')
on_release:
app.scan_qr(on_complete=app.set_URI)
Button:
id: paste_button
text: _('Paste')
on_release:
s.parent.do_paste()
Button:
text: _('Clear')
size_hint: 1, None
height: '48dp'
on_release: s.parent.do_clear()
BoxLayout:
size_hint: 1, None
height: '48dp'
Widget:
size_hint: 1, 1
Button:
text: _('Send')
size_hint: 1, None
height: '48dp'
on_release: s.parent.do_send()
Widget:
size_hint: 1, 1