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

128 lines
4.8 KiB
Plaintext
Raw Normal View History

2019-12-24 03:21:35 -08:00
#:import _ electrum_bitcoinprivate_gui.kivy.i18n._
#:import Decimal decimal.Decimal
#:set btc_symbol chr(171)
#:set mbtc_symbol chr(187)
2016-01-29 02:17:22 -08:00
#:set font_light 'gui/kivy/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: ''
is_pr: False
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-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:
2016-02-25 05:17:59 -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: payto_e
2015-12-12 21:41:22 -08:00
text: s.address if s.address else _('Recipient')
2016-02-05 12:07:48 -08:00
shorten: True
2016-05-27 02:55:23 -07:00
on_release: Clock.schedule_once(lambda dt: app.show_info(_('Copy and paste the recipient address using the Paste button, or use the camera to scan a QR code.')))
#on_release: Clock.schedule_once(lambda dt: app.popup_dialog('contacts'))
2015-10-14 07:52:10 -07:00
CardSeparator:
2016-02-19 04:53:01 -08:00
opacity: int(not root.is_pr)
2015-10-14 07:52:10 -07:00
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:
2016-02-25 05:17:59 -08:00
source: 'atlas://gui/kivy/theming/light/calculator'
opacity: 0.7
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')
disabled: root.is_pr
2016-02-08 10:01:34 -08:00
on_release: Clock.schedule_once(lambda dt: app.amount_dialog(s, True))
2015-10-14 07:52:10 -07:00
CardSeparator:
2016-02-19 04:53:01 -08:00
opacity: int(not root.is_pr)
2015-10-14 07:52:10 -07:00
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
2016-02-19 04:53:01 -08:00
text: s.message if s.message else (_('No Description') if root.is_pr else _('Description'))
disabled: root.is_pr
2016-02-08 10:01:34 -08:00
on_release: Clock.schedule_once(lambda dt: app.description_dialog(s))
CardSeparator:
opacity: int(not root.is_pr)
color: blue_bottom.foreground_color
BoxLayout:
size_hint: 1, None
height: blue_bottom.item_height
spacing: '5dp'
Image:
source: 'atlas://gui/kivy/theming/light/star_big_inactive'
opacity: 0.7
size_hint: None, None
size: '22dp', '22dp'
pos_hint: {'center_y': .5}
BlueButton:
id: fee_e
default_text: _('Fee')
text: app.fee_status
on_release: Clock.schedule_once(lambda dt: app.fee_dialog(s, True))
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'
2016-02-08 02:06:45 -08:00
IconButton:
2016-02-09 03:48:25 -08:00
size_hint: 0.6, 1
on_release: s.parent.do_save()
icon: 'atlas://gui/kivy/theming/light/save'
Button:
text: _('Invoices')
size_hint: 1, 1
on_release: Clock.schedule_once(lambda dt: app.invoices_dialog(s))
2015-12-02 06:27:23 -08:00
Button:
2015-12-04 02:47:46 -08:00
text: _('Paste')
2016-02-08 02:06:45 -08:00
on_release: s.parent.do_paste()
2016-02-09 03:48:25 -08:00
IconButton:
id: qr
2016-02-09 03:48:25 -08:00
size_hint: 0.6, 1
on_release: Clock.schedule_once(lambda dt: app.scan_qr(on_complete=app.on_qr))
icon: 'atlas://gui/kivy/theming/light/camera'
2015-12-02 06:27:23 -08:00
BoxLayout:
size_hint: 1, None
height: '48dp'
Button:
text: _('Clear')
on_release: s.parent.do_clear()
2015-12-04 02:47:46 -08:00
Widget:
size_hint: 1, 1
2015-10-14 04:03:13 -07:00
Button:
2016-02-09 03:48:25 -08:00
text: _('Pay')
size_hint: 1, 1
2015-12-04 02:47:46 -08:00
on_release: s.parent.do_send()
Widget:
size_hint: 1, 1