redo max amount button with smaller footprint
This commit is contained in:
@@ -15,20 +15,8 @@ Popup:
|
|||||||
BoxLayout:
|
BoxLayout:
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
height: '48dp'
|
height: '48dp'
|
||||||
id: 'spendable'
|
|
||||||
Label:
|
Label:
|
||||||
text: _('Spendable:')
|
text: 'Amount'
|
||||||
size_hint_x: 1
|
|
||||||
Button:
|
|
||||||
size_hint_x: 1
|
|
||||||
height: '48dp'
|
|
||||||
amount: app.get_max_amount()
|
|
||||||
text: self.amount + ' ' + app.base_unit
|
|
||||||
on_release: a.amount = self.amount
|
|
||||||
|
|
||||||
BoxLayout:
|
|
||||||
size_hint: 1, None
|
|
||||||
height: '48dp'
|
|
||||||
Label:
|
Label:
|
||||||
id: a
|
id: a
|
||||||
amount: ''
|
amount: ''
|
||||||
@@ -79,6 +67,13 @@ Popup:
|
|||||||
KButton:
|
KButton:
|
||||||
text: '<'
|
text: '<'
|
||||||
label: a
|
label: a
|
||||||
|
Button:
|
||||||
|
size_hint: 1, None
|
||||||
|
height: '48dp'
|
||||||
|
text: 'Max'
|
||||||
|
on_release: a.amount = app.get_max_amount()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
|
|||||||
Reference in New Issue
Block a user