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

106 lines
3.4 KiB
Plaintext
Raw Normal View History

#:import _ electrum.i18n._
#:import Decimal decimal.Decimal
#:import Factory kivy.factory.Factory
#:set btc_symbol unichr(171)
#:set mbtc_symbol unichr(187)
#:set font_light 'data/fonts/Roboto-Condensed.ttf'
SendScreen:
2015-12-04 02:47:46 -08:00
id: s
name: 'send'
2015-12-04 02:47:46 -08:00
address: ''
amount: ''
message: ''
BoxLayout
padding: '12dp', '12dp', '12dp', '12dp'
spacing: '12dp'
orientation: 'vertical'
2015-10-14 07:52:10 -07:00
SendReceiveBlueBottom:
id: blue_bottom
size_hint: 1, None
height: self.minimum_height
2015-12-14 04:37:19 -08:00
spacing: '5dp'
2015-10-14 07:52:10 -07:00
BoxLayout:
size_hint: 1, None
2015-10-14 07:52:10 -07:00
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}
2015-12-14 03:08:11 -08:00
BlueButton:
2015-10-14 07:52:10 -07:00
id: payto_e
2015-12-12 21:41:22 -08:00
text: s.address if s.address else _('Recipient')
on_release: app.address_dialog(s)
2015-10-14 07:52:10 -07:00
CardSeparator:
opacity: message_selection.opacity
color: blue_bottom.foreground_color
BoxLayout:
size_hint: 1, None
height: blue_bottom.item_height
2015-12-14 04:37:19 -08:00
spacing: '5dp'
2015-10-14 07:52:10 -07:00
Image:
2015-12-02 09:02:11 -08:00
source: 'atlas://gui/kivy/theming/light/globe'
2015-10-14 07:52:10 -07:00
size_hint: None, None
size: '22dp', '22dp'
pos_hint: {'center_y': .5}
2015-12-14 03:08:11 -08:00
BlueButton:
2015-10-14 07:52:10 -07:00
id: amount_e
2015-12-14 03:08:11 -08:00
default_text: _('Amount')
2015-12-12 21:41:22 -08:00
text: s.amount if s.amount else _('Amount')
on_release: s.amount_dialog()
2015-10-14 07:52:10 -07:00
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}
2015-12-14 03:08:11 -08:00
BlueButton:
id: description
text: s.message if s.message else _('Description')
on_release: app.description_dialog(s)
2015-10-14 04:03:13 -07:00
BoxLayout:
2015-10-14 07:52:10 -07:00
size_hint: 1, None
2015-12-02 06:27:23 -08:00
height: '48dp'
Button:
id: qr
text: _('QR Code')
on_release:
2015-12-11 06:21:21 -08:00
app.scan_qr(on_complete=app.set_URI)
2015-12-02 06:27:23 -08:00
Button:
id: paste_button
2015-12-04 02:47:46 -08:00
text: _('Paste')
2015-12-02 06:27:23 -08:00
on_release:
2015-12-04 02:47:46 -08:00
s.parent.do_paste()
2015-10-14 04:03:13 -07:00
Button:
text: _('Clear')
2015-10-14 09:03:02 -07:00
size_hint: 1, None
2015-12-02 06:27:23 -08:00
height: '48dp'
2015-12-04 02:47:46 -08:00
on_release: s.parent.do_clear()
2015-12-02 06:27:23 -08:00
BoxLayout:
size_hint: 1, None
height: '48dp'
2015-12-04 02:47:46 -08:00
Widget:
size_hint: 1, 1
2015-10-14 04:03:13 -07:00
Button:
text: _('Send')
2015-10-14 09:03:02 -07:00
size_hint: 1, None
2015-12-02 06:27:23 -08:00
height: '48dp'
2015-12-04 02:47:46 -08:00
on_release: s.parent.do_send()
Widget:
size_hint: 1, 1