kivy: add invoice details dialog
This commit is contained in:
43
gui/kivy/uix/ui_screens/invoice.kv
Normal file
43
gui/kivy/uix/ui_screens/invoice.kv
Normal file
@@ -0,0 +1,43 @@
|
||||
#:import Decimal decimal.Decimal
|
||||
|
||||
Popup:
|
||||
id: popup
|
||||
title: _('Invoice')
|
||||
AnchorLayout:
|
||||
anchor_x: 'center'
|
||||
BoxLayout:
|
||||
orientation: 'vertical'
|
||||
Label:
|
||||
id: requestor_label
|
||||
text_size: self.width, None
|
||||
size_hint: 1, 0.3
|
||||
Label:
|
||||
id: expiration_label
|
||||
text_size: self.width, None
|
||||
size_hint: 1, 0.3
|
||||
Label:
|
||||
id: memo_label
|
||||
text_size: self.width, None
|
||||
size_hint: 1, 0.3
|
||||
Label:
|
||||
id: signature_label
|
||||
text_size: self.width, None
|
||||
size_hint: 1, 0.3
|
||||
Label:
|
||||
id: txid_label
|
||||
text_size: self.width, None
|
||||
size: self.texture_size
|
||||
Widget:
|
||||
size_hint: 1, 0.3
|
||||
|
||||
BoxLayout:
|
||||
size_hint: 1, None
|
||||
height: '48dp'
|
||||
Widget:
|
||||
size_hint: 0.5, None
|
||||
height: '48dp'
|
||||
Button:
|
||||
size_hint: 0.5, None
|
||||
height: '48dp'
|
||||
text: _('OK')
|
||||
on_release: popup.dismiss()
|
||||
@@ -1,11 +1,8 @@
|
||||
#:import Decimal decimal.Decimal
|
||||
|
||||
|
||||
Popup:
|
||||
id: popup
|
||||
title: _('Transaction')
|
||||
tx_hash: ''
|
||||
|
||||
AnchorLayout:
|
||||
anchor_x: 'center'
|
||||
BoxLayout:
|
||||
@@ -32,7 +29,6 @@ Popup:
|
||||
size_hint: 1, 0.3
|
||||
Widget:
|
||||
size_hint: 1, 0.3
|
||||
|
||||
BoxLayout:
|
||||
size_hint: 1, None
|
||||
height: '48dp'
|
||||
|
||||
Reference in New Issue
Block a user