1
0

kivy: add status icons, improve requests layout

This commit is contained in:
ThomasV
2015-12-13 10:42:48 +01:00
parent b1704ce911
commit 9caf174d7f
5 changed files with 94 additions and 63 deletions

View File

@@ -1,8 +1,8 @@
<RequestLabel@Label>
#color: .305, .309, .309, 1
text_size: self.size
text_size: self.width, None
halign: 'left'
valign: 'middle'
valign: 'top'
<RequestItem@CardItem>
address: ''
@@ -10,15 +10,33 @@
amount: ''
status: ''
date: ''
icon: 'atlas://gui/kivy/theming/light/important'
Image:
id: icon
source: root.icon
size_hint: None, 1
width: self.height *.54
mipmap: True
BoxLayout:
spacing: '8dp'
height: '32dp'
orientation: 'vertical'
Widget
RequestLabel:
text: root.address
shorten: True
RequestLabel:
text: root.memo
color: .699, .699, .699, 1
font_size: '13sp'
shorten: True
Widget
RequestLabel:
text: root.address
font_size: '13dp'
RequestLabel:
text: root.memo
RequestLabel:
halign: 'right'
font_size: '15sp'
size_hint: None, 1
width: '80sp'
text: root.amount
#InvoicesLabel:
# text: root.status
RequestsScreen: