kivy: base_unit setting
This commit is contained in:
@@ -54,9 +54,9 @@
|
||||
<RecentActivityItem@CardItem>
|
||||
icon: 'atlas://gui/kivy/theming/light/important'
|
||||
address:'no address set'
|
||||
amount: '+0.00'
|
||||
balance: 'xyz'# balance_after
|
||||
amount_color: '#DB3627' if float(self.amount) < 0 else '#2EA442'
|
||||
value: 0
|
||||
amount: app.format_amount(self.value, True) if self.value is not None else '--'
|
||||
amount_color: '#DB3627' if self.value < 0 else '#2EA442'
|
||||
confirmations: 0
|
||||
date: '0/0/0'
|
||||
quote_text: '.'
|
||||
@@ -91,15 +91,15 @@
|
||||
halign: 'right'
|
||||
font_size: '13sp'
|
||||
size_hint: None, 1
|
||||
width: '90sp'
|
||||
width: '110sp'
|
||||
markup: True
|
||||
font_name: font_light
|
||||
text:
|
||||
u'[color={amount_color}]{sign}{symbol}{amount}[/color]\n'\
|
||||
u'[color={amount_color}]{sign}{amount} {unit}[/color]\n'\
|
||||
u'[color=#B2B3B3][size=12sp]{qt}[/size]'\
|
||||
u'[/color]'.format(amount_color=root.amount_color,\
|
||||
amount=root.amount[1:], qt=root.quote_text, sign=root.amount[0],\
|
||||
symbol=btc_symbol if app.base_unit == 'BTC' else mbtc_symbol)
|
||||
unit=app.base_unit)
|
||||
CardSeparator
|
||||
|
||||
<CardRecentActivity@Card>
|
||||
|
||||
@@ -14,10 +14,11 @@ Popup:
|
||||
height: '48dp'
|
||||
size_hint: 1, None
|
||||
Spinner:
|
||||
text: 'BTC'
|
||||
text: app.base_unit
|
||||
values: ('BTC', 'mBTC')
|
||||
size_hint: 1, None
|
||||
height: '48dp'
|
||||
on_text: app.base_unit = self.text
|
||||
|
||||
Label:
|
||||
size_hint: 1, None
|
||||
|
||||
Reference in New Issue
Block a user