tredo max amount button with smaller footprint - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d44aa250fafc4e547787990b9ebed755279339f0 DIR parent 2a3c97813d03d6ab877e8a0ae868b976abdf299d HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 30 Oct 2015 14:34:15 +0100 redo max amount button with smaller footprint Diffstat: M gui/kivy/uix/ui_screens/amount.kv | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) --- DIR diff --git a/gui/kivy/uix/ui_screens/amount.kv b/gui/kivy/uix/ui_screens/amount.kv t@@ -15,20 +15,8 @@ Popup: BoxLayout: size_hint: 1, None height: '48dp' - id: 'spendable' Label: - text: _('Spendable:') - 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' + text: 'Amount' Label: id: a amount: '' t@@ -79,6 +67,13 @@ Popup: KButton: text: '<' label: a + Button: + size_hint: 1, None + height: '48dp' + text: 'Max' + on_release: a.amount = app.get_max_amount() + + BoxLayout: size_hint: 1, None