kivy: add context menus
This commit is contained in:
@@ -38,20 +38,6 @@
|
||||
size: self.texture_size[0] + dp(32), self.texture_size[1] + dp(7)
|
||||
|
||||
|
||||
<CardItem@ToggleButtonBehavior+GridLayout>
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: 0.192, .498, 0.745, 1 if self.state == 'down' else 0
|
||||
Rectangle
|
||||
size: self.size
|
||||
pos: self.x, self.y + dp(5)
|
||||
cols: 1
|
||||
padding: '2dp', '2dp'
|
||||
spacing: '2dp'
|
||||
size_hint: 1, None
|
||||
height: self.minimum_height
|
||||
group: 'history'
|
||||
|
||||
<RecentActivityItem@CardItem>
|
||||
icon: 'atlas://gui/kivy/theming/light/important'
|
||||
address: 'no address set'
|
||||
@@ -62,8 +48,7 @@
|
||||
date: '0/0/0'
|
||||
quote_text: '.'
|
||||
spacing: '9dp'
|
||||
on_release:
|
||||
app.tx_selected(root.tx_hash, self.state)
|
||||
cols: 1
|
||||
BoxLayout:
|
||||
size_hint: 1, None
|
||||
spacing: '8dp'
|
||||
@@ -100,16 +85,6 @@
|
||||
u'[/color]'.format(amount_color=root.amount_color,\
|
||||
amount=root.amount[1:], qt=root.quote_text, sign=root.amount[0],\
|
||||
unit=app.base_unit)
|
||||
CardSeparator
|
||||
|
||||
<CardRecentActivity@Card>
|
||||
GridLayout:
|
||||
id: content
|
||||
spacing: '7dp'
|
||||
cols: 1
|
||||
size_hint: 1, None
|
||||
height: self.minimum_height
|
||||
CardSeparator
|
||||
|
||||
|
||||
HistoryScreen:
|
||||
@@ -119,12 +94,9 @@ HistoryScreen:
|
||||
id: content
|
||||
do_scroll_x: False
|
||||
GridLayout
|
||||
id: grid
|
||||
cols: 1 #if root.width < root.height else 2
|
||||
id: history_container
|
||||
cols: 1
|
||||
size_hint: 1, None
|
||||
height: self.minimum_height
|
||||
padding: '12dp'
|
||||
spacing: '12dp'
|
||||
CardRecentActivity:
|
||||
id: recent_activity_card
|
||||
|
||||
|
||||
@@ -4,22 +4,12 @@
|
||||
halign: 'left'
|
||||
valign: 'middle'
|
||||
|
||||
<InvoiceItem@BoxLayout>
|
||||
<InvoiceItem@CardItem>
|
||||
requestor: ''
|
||||
memo: ''
|
||||
amount: ''
|
||||
status: ''
|
||||
date: ''
|
||||
size_hint_y: None
|
||||
height: '65dp'
|
||||
padding: dp(12)
|
||||
spacing: dp(5)
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: 0.3, 0.3, 0.3, 1
|
||||
Rectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
InvoicesLabel:
|
||||
text: root.requestor
|
||||
InvoicesLabel:
|
||||
@@ -45,6 +35,7 @@ InvoicesScreen:
|
||||
GridLayout:
|
||||
cols: 1
|
||||
id: invoices_container
|
||||
size_hint_y: None
|
||||
size_hint: 1, None
|
||||
height: self.minimum_height
|
||||
spacing: '1dp'
|
||||
padding: '12dp'
|
||||
|
||||
@@ -1,35 +1,26 @@
|
||||
<InvoicesLabel@Label>
|
||||
<RequestLabel@Label>
|
||||
#color: .305, .309, .309, 1
|
||||
text_size: self.size
|
||||
halign: 'left'
|
||||
valign: 'middle'
|
||||
|
||||
<RequestItem@BoxLayout>
|
||||
<RequestItem@CardItem>
|
||||
address: ''
|
||||
memo: ''
|
||||
amount: ''
|
||||
status: ''
|
||||
date: ''
|
||||
size_hint_y: None
|
||||
height: '65dp'
|
||||
padding: dp(12)
|
||||
spacing: dp(5)
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: 0.3, 0.3, 0.3, 1
|
||||
Rectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
InvoicesLabel:
|
||||
RequestLabel:
|
||||
text: root.address
|
||||
font_size: '13dp'
|
||||
InvoicesLabel:
|
||||
RequestLabel:
|
||||
text: root.memo
|
||||
InvoicesLabel:
|
||||
RequestLabel:
|
||||
text: root.amount
|
||||
#InvoicesLabel:
|
||||
# text: root.status
|
||||
|
||||
|
||||
RequestsScreen:
|
||||
name: 'requests'
|
||||
on_activate:
|
||||
@@ -51,3 +42,4 @@ RequestsScreen:
|
||||
size_hint_y: None
|
||||
height: self.minimum_height
|
||||
spacing: '1dp'
|
||||
padding: '12dp'
|
||||
|
||||
Reference in New Issue
Block a user