#: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: id: s name: 'send' address: '' amount: '' message: '' 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 text: s.address 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 text: s.amount if s.amount else 'Amount' on_release: app.amount_dialog(s, 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' text: s.message on_text_validate: s.message = self.text BoxLayout: size_hint: 1, None height: '48dp' Button: id: qr text: _('QR Code') on_release: app.scan_qr(on_complete=s.parent.set_URI) Button: id: paste_button text: _('Paste') on_release: s.parent.do_paste() Button: text: _('Clear') size_hint: 1, None height: '48dp' on_release: s.parent.do_clear() BoxLayout: size_hint: 1, None height: '48dp' Widget: size_hint: 1, 1 Button: text: _('Send') size_hint: 1, None height: '48dp' on_release: s.parent.do_send() Widget: size_hint: 1, 1