You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.8 KiB
74 lines
1.8 KiB
#:import _ electrum_gui.kivy.i18n._ |
|
#:import Factory kivy.factory.Factory |
|
#:set font_light 'gui/kivy/data/fonts/Roboto-Condensed.ttf' |
|
#:set btc_symbol chr(171) |
|
#:set mbtc_symbol chr(187) |
|
|
|
|
|
|
|
<CardLabel@Label> |
|
color: 0.95, 0.95, 0.95, 1 |
|
size_hint: 1, None |
|
text: '' |
|
text_size: self.width, None |
|
height: self.texture_size[1] |
|
halign: 'left' |
|
valign: 'top' |
|
|
|
|
|
<HistoryItem@CardItem> |
|
icon: 'atlas://gui/kivy/theming/light/important' |
|
message: '' |
|
value: 0 |
|
amount: '--' |
|
amount_color: '#FF6657' if self.value < 0 else '#2EA442' |
|
confirmations: 0 |
|
date: '' |
|
quote_text: '' |
|
spacing: '9dp' |
|
Image: |
|
id: icon |
|
source: root.icon |
|
size_hint: None, 1 |
|
width: self.height *.54 |
|
mipmap: True |
|
BoxLayout: |
|
orientation: 'vertical' |
|
Widget |
|
CardLabel: |
|
text: root.date |
|
font_size: '14sp' |
|
CardLabel: |
|
color: .699, .699, .699, 1 |
|
font_size: '13sp' |
|
shorten: True |
|
text: root.message |
|
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: |
|
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'
|
|
|