2016-02-04 01:49:51 -08:00
|
|
|
#:import _ electrum_gui.kivy.i18n._
|
2015-10-06 00:59:29 -07:00
|
|
|
#:import Decimal decimal.Decimal
|
|
|
|
#:set btc_symbol unichr(171)
|
|
|
|
#:set mbtc_symbol unichr(187)
|
2016-01-29 02:17:22 -08:00
|
|
|
#:set font_light 'gui/kivy/data/fonts/Roboto-Condensed.ttf'
|
2015-10-06 00:59:29 -07:00
|
|
|
|
|
|
|
|
|
|
|
SendScreen:
|
|
|
|
|
2015-12-04 02:47:46 -08:00
|
|
|
id: s
|
2015-10-06 00:59:29 -07:00
|
|
|
name: 'send'
|
2015-12-04 02:47:46 -08:00
|
|
|
address: ''
|
|
|
|
amount: ''
|
|
|
|
message: ''
|
|
|
|
|
2015-10-06 00:59:29 -07:00
|
|
|
BoxLayout
|
|
|
|
padding: '12dp', '12dp', '12dp', '12dp'
|
|
|
|
spacing: '12dp'
|
|
|
|
orientation: 'vertical'
|
2015-10-14 07:52:10 -07:00
|
|
|
SendReceiveBlueBottom:
|
|
|
|
id: blue_bottom
|
2015-10-06 00:59:29 -07:00
|
|
|
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:
|
2015-10-06 00:59:29 -07:00
|
|
|
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)
|
2016-02-05 12:07:48 -08:00
|
|
|
shorten: True
|
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')
|
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:
|
|
|
|
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')
|
2016-02-08 10:01:34 -08:00
|
|
|
on_release: Clock.schedule_once(lambda dt: 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'
|
2016-02-08 02:06:45 -08:00
|
|
|
IconButton:
|
2015-12-02 06:27:23 -08:00
|
|
|
id: qr
|
2016-02-09 03:48:25 -08:00
|
|
|
size_hint: 0.6, 1
|
2016-02-12 07:09:16 -08:00
|
|
|
on_release: app.scan_qr(on_complete=app.on_qr)
|
2016-02-08 02:06:45 -08:00
|
|
|
icon: 'atlas://gui/kivy/theming/light/camera'
|
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()
|
2015-10-14 04:03:13 -07:00
|
|
|
Button:
|
|
|
|
text: _('Clear')
|
2015-12-04 02:47:46 -08:00
|
|
|
on_release: s.parent.do_clear()
|
2016-02-09 03:48:25 -08:00
|
|
|
IconButton:
|
|
|
|
size_hint: 0.6, 1
|
|
|
|
on_release: s.parent.do_save()
|
|
|
|
icon: 'atlas://gui/kivy/theming/light/save'
|
2015-12-02 06:27:23 -08:00
|
|
|
BoxLayout:
|
|
|
|
size_hint: 1, None
|
|
|
|
height: '48dp'
|
2015-12-04 02:47:46 -08:00
|
|
|
Widget:
|
2016-02-09 03:48:25 -08:00
|
|
|
size_hint: 2, 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
|
2015-10-06 00:59:29 -07:00
|
|
|
|
|
|
|
|