You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
3.9 KiB
120 lines
3.9 KiB
#: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' |
|
|
|
|
|
|
|
ReceiveScreen: |
|
id: s |
|
name: 'receive' |
|
|
|
address: '' |
|
amount: '' |
|
message: '' |
|
|
|
on_address: |
|
self.parent.update_qr() |
|
on_amount: |
|
self.parent.update_qr() |
|
on_message: |
|
self.parent.update_qr() |
|
|
|
BoxLayout |
|
padding: '12dp', '12dp', '12dp', '12dp' |
|
spacing: '12dp' |
|
orientation: 'vertical' |
|
size_hint: 1, 1 |
|
FloatLayout: |
|
id: bl |
|
QRCodeWidget: |
|
id: qr |
|
size_hint: None, 1 |
|
width: min(self.height, bl.width) |
|
pos_hint: {'center': (.5, .5)} |
|
shaded: False |
|
on_touch_down: |
|
self.shaded = not self.shaded |
|
self.foreground_color = (0, 0, 0, 0.5) if self.shaded else (0, 0, 0, 0) |
|
|
|
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://gui/kivy/theming/light/contact' |
|
size_hint: None, None |
|
size: '22dp', '22dp' |
|
pos_hint: {'center_y': .5} |
|
BlueButton: |
|
id: address_label |
|
text: s.address if s.address else _('Bitcoin Address') |
|
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_label |
|
default_text: _('Amount') |
|
text: s.amount if s.amount else _('Amount') |
|
on_release: 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://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: |
|
text: _('Copy') |
|
size_hint: 1, None |
|
height: '48dp' |
|
on_release: s.parent.do_copy() |
|
Button: |
|
text: _('Share') |
|
size_hint: 1, None |
|
height: '48dp' |
|
on_release: s.parent.do_share() |
|
Button: |
|
text: _('Save') |
|
size_hint: 1, None |
|
height: '48dp' |
|
on_release: s.parent.do_save() |
|
BoxLayout: |
|
size_hint: 1, None |
|
height: '48dp' |
|
Widget: |
|
size_hint: 1, 1 |
|
Button: |
|
text: _('New') |
|
size_hint: 1, None |
|
height: '48dp' |
|
on_release: s.parent.do_new()
|
|
|