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.
122 lines
3.7 KiB
122 lines
3.7 KiB
#: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' |
|
|
|
|
|
<SendToggle@ToggleButton> |
|
source: '' |
|
markup: False |
|
bold: True |
|
border: 4, 4, 4, 4 |
|
group: 'transfer_type' |
|
background_normal: self.background_down |
|
color: |
|
(.140, .140, .140, 1) if self.state == 'down' else (.796, .796, .796, 1) |
|
canvas.after: |
|
Color: |
|
rgba: 1, 1, 1, 1 |
|
Image: |
|
source: root.source |
|
color: root.color |
|
size: '30dp', '30dp' |
|
center_x: root.center_x - ((root.texture_size[0]/2)+(self.width/1.5)) |
|
center_y: root.center_y |
|
|
|
|
|
|
|
SendScreen: |
|
|
|
id: send_screen |
|
name: 'send' |
|
#action_view: Factory.SendActionView() |
|
#on_deactivate: |
|
# self.ids.amount_e.focus = False |
|
# self.ids.payto_e.focus = False |
|
# self.ids.message_e.focus = False |
|
BoxLayout |
|
padding: '12dp', '12dp', '12dp', '12dp' |
|
spacing: '12dp' |
|
orientation: 'vertical' |
|
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} |
|
TextInputBlue: |
|
id: payto_e |
|
hint_text: "Recipient" |
|
CardSeparator: |
|
opacity: message_selection.opacity |
|
color: blue_bottom.foreground_color |
|
BoxLayout: |
|
size_hint: 1, None |
|
height: blue_bottom.item_height |
|
Image: |
|
source: 'atlas://gui/kivy/theming/light/globe' |
|
size_hint: None, None |
|
size: '22dp', '22dp' |
|
pos_hint: {'center_y': .5} |
|
AmountButton: |
|
id: amount_e |
|
on_release: app.amount_dialog(self, None, True) |
|
|
|
|
|
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} |
|
TextInputBlue: |
|
id: message_e |
|
hint_text: 'Description' |
|
BoxLayout: |
|
size_hint: 1, None |
|
height: '48dp' |
|
Button: |
|
id: qr |
|
text: _('QR Code') |
|
on_release: |
|
app.scan_qr(on_complete=root.set_URI) |
|
Button: |
|
id: paste_button |
|
text: _('Clipboard') |
|
on_release: |
|
app.send_from_clipboard(on_complete=root.set_URI) |
|
Button: |
|
text: _('Clear') |
|
size_hint: 1, None |
|
height: '48dp' |
|
on_release: send_screen.do_clear() |
|
Widget: |
|
size_hint: 1, 1 |
|
BoxLayout: |
|
size_hint: 1, None |
|
height: '48dp' |
|
Button: |
|
text: _('Send') |
|
size_hint: 1, None |
|
height: '48dp' |
|
on_release: send_screen.do_send() |
|
|
|
|
|
|