|
@ -12,21 +12,14 @@ Popup: |
|
|
orientation: 'vertical' |
|
|
orientation: 'vertical' |
|
|
size_hint: 0.8, 1 |
|
|
size_hint: 0.8, 1 |
|
|
BoxLayout: |
|
|
BoxLayout: |
|
|
size_hint: 1, None |
|
|
size_hint: 1, 1 |
|
|
height: '48dp' |
|
|
height: '48dp' |
|
|
Label: |
|
|
Label: |
|
|
id: a |
|
|
id: a |
|
|
amount: '' |
|
|
amount: '' |
|
|
is_fiat: False |
|
|
is_fiat: False |
|
|
text: app.get_amount_text(self.amount, self.is_fiat) |
|
|
text: app.get_amount_text(self.amount, self.is_fiat) |
|
|
Widget: |
|
|
size_hint: 1, 1 |
|
|
size_hint_x: 1 |
|
|
|
|
|
Button: |
|
|
|
|
|
id: button_fiat |
|
|
|
|
|
size_hint: 1, None |
|
|
|
|
|
height: '48dp' |
|
|
|
|
|
text: '/' |
|
|
|
|
|
on_release: a.is_fiat = not a.is_fiat |
|
|
|
|
|
|
|
|
|
|
|
Widget: |
|
|
Widget: |
|
|
size_hint: 1, 1 |
|
|
size_hint: 1, 1 |
|
@ -77,20 +70,26 @@ Popup: |
|
|
height: '48dp' |
|
|
height: '48dp' |
|
|
text: 'Max' |
|
|
text: 'Max' |
|
|
on_release: a.amount = app.get_max_amount() |
|
|
on_release: a.amount = app.get_max_amount() |
|
|
|
|
|
Button: |
|
|
Widget: |
|
|
id: button_fiat |
|
|
size_hint: 1, None |
|
|
|
|
|
|
|
|
|
|
|
BoxLayout: |
|
|
|
|
|
size_hint: 1, None |
|
|
size_hint: 1, None |
|
|
height: '48dp' |
|
|
height: '48dp' |
|
|
|
|
|
text: '/' |
|
|
|
|
|
on_release: a.is_fiat = not a.is_fiat |
|
|
Button: |
|
|
Button: |
|
|
size_hint: 1, None |
|
|
size_hint: 1, None |
|
|
height: '48dp' |
|
|
height: '48dp' |
|
|
text: 'Clear' |
|
|
text: 'Clear' |
|
|
on_release: a.amount = '' |
|
|
on_release: a.amount = '' |
|
|
|
|
|
|
|
|
Widget: |
|
|
Widget: |
|
|
size_hint: 1, None |
|
|
size_hint: 1, None |
|
|
|
|
|
|
|
|
|
|
|
BoxLayout: |
|
|
|
|
|
size_hint: 1, None |
|
|
|
|
|
height: '48dp' |
|
|
|
|
|
Widget: |
|
|
|
|
|
size_hint: 2, None |
|
|
height: '48dp' |
|
|
height: '48dp' |
|
|
Button: |
|
|
Button: |
|
|
size_hint: 1, None |
|
|
size_hint: 1, None |
|
|