1
0

kivy: fixes

This commit is contained in:
ThomasV
2015-12-13 15:26:08 +01:00
parent 9caf174d7f
commit a190d1dbe6
6 changed files with 61 additions and 63 deletions

View File

@@ -23,46 +23,40 @@
amount: app.format_amount(self.value, True) if self.value is not None else '--'
amount_color: '#FF6657' if self.value < 0 else '#2EA442'
confirmations: 0
date: '0/0/0'
quote_text: '.'
date: ''
quote_text: ''
spacing: '9dp'
cols: 1
Image:
id: icon
source: root.icon
size_hint: None, 1
width: self.height *.54
mipmap: True
BoxLayout:
size_hint: 1, None
spacing: '8dp'
height: '32dp'
Image:
id: icon
source: root.icon
size_hint: None, 1
width: self.height *.54
mipmap: True
BoxLayout:
orientation: 'vertical'
Widget
CardLabel:
color: .699, .699, .699, 1
text: root.date
font_size: '14sp'
CardLabel:
shorten: True
text: root.message
markup: False
text_size: self.size
Widget
orientation: 'vertical'
Widget
CardLabel:
halign: 'right'
font_size: '15sp'
size_hint: None, 1
width: '110sp'
markup: True
font_name: font_light
text:
u'[color={amount_color}]{sign}{amount} {unit}[/color]\n'\
u'[color=#B2B3B3][size=13sp]{qt}[/size]'\
u'[/color]'.format(amount_color=root.amount_color,\
amount=root.amount[1:], qt=root.quote_text, sign=root.amount[0],\
unit=app.base_unit)
text: root.date
font_size: '14sp'
CardLabel:
color: .699, .699, .699, 1
font_size: '13sp'
shorten: True
text: root.message if root.message else ' '
Widget
CardLabel:
halign: 'right'
font_size: '15sp'
size_hint: None, 1
width: '110sp'
markup: True
font_name: font_light
text:
u'[color={amount_color}]{sign}{amount} {unit}[/color]\n'\
u'[color=#B2B3B3][size=13sp]{qt}[/size]'\
u'[/color]'.format(amount_color=root.amount_color,\
amount=root.amount[1:], qt=root.quote_text, sign=root.amount[0],\
unit=app.base_unit)
HistoryScreen:

View File

@@ -35,7 +35,7 @@
halign: 'right'
font_size: '15sp'
size_hint: None, 1
width: '80sp'
width: '110sp'
text: root.amount
InvoicesScreen:

View File

@@ -79,7 +79,6 @@ ReceiveScreen:
hint_text: 'Description'
text: s.message
on_text_validate: s.message = self.text
BoxLayout:
size_hint: 1, None
height: '48dp'
@@ -88,15 +87,15 @@ ReceiveScreen:
size_hint: 1, None
height: '48dp'
on_release: s.parent.do_copy()
Button:
text: _('New')
size_hint: 1, None
height: '48dp'
on_release: s.parent.do_clear()
Button:
text: _('Save')
size_hint: 1, None
height: '48dp'
on_release: s.parent.do_save()
Button:
text: _('New')
size_hint: 1, None
height: '48dp'
on_release: s.parent.do_new()
Widget:
size_hint: 1, 0.3

View File

@@ -35,7 +35,7 @@
halign: 'right'
font_size: '15sp'
size_hint: None, 1
width: '80sp'
width: '110sp'
text: root.amount