1
0

kivy: do not show balance in every tab. fixes #3350

This commit is contained in:
ThomasV
2018-03-02 19:16:08 +01:00
parent 4b7cf297f5
commit d5effe48d0
4 changed files with 29 additions and 23 deletions

View File

@@ -162,13 +162,8 @@ class HistoryScreen(CScreen):
count = 0
for item in history:
ri = self.get_card(*item)
count += 1
history_card.add_widget(ri)
if count == 0:
msg = _('This screen shows your list of transactions. It is currently empty.')
history_card.add_widget(EmptyLabel(text=msg))
class SendScreen(CScreen):

View File

@@ -62,13 +62,23 @@
HistoryScreen:
name: 'history'
content: content
ScrollView:
id: content
do_scroll_x: False
GridLayout
id: history_container
cols: 1
size_hint: 1, None
height: self.minimum_height
padding: '12dp'
spacing: '2dp'
BoxLayout:
orientation: 'vertical'
Label:
text: app.balance
color: .699, .699, .699, 1
font_size: '22dp'
bold: True
size_hint: 1, 0.25
ScrollView:
id: content
do_scroll_x: False
size_hint: 1, 0.75
#height: self.minimum_height
GridLayout
id: history_container
cols: 1
size_hint: 1, None
height: self.minimum_height
padding: '12dp'
spacing: '2dp'