Browse Source

colors in history

master
Sander van Grieken 4 years ago
parent
commit
4cc3acabb3
  1. 2
      electrum/gui/qml/components/Constants.qml
  2. 6
      electrum/gui/qml/components/History.qml

2
electrum/gui/qml/components/Constants.qml

@ -24,5 +24,5 @@ Item {
property color colorCredit: "#ff80ff80" property color colorCredit: "#ff80ff80"
property color colorDebit: "#ffff8080" property color colorDebit: "#ffff8080"
property color mutedForeground: Qt.lighter(Material.background, 2) property color mutedForeground: 'gray' //Qt.lighter(Material.background, 2)
} }

6
electrum/gui/qml/components/History.qml

@ -36,7 +36,7 @@ Pane {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.topMargin: constants.paddingLarge Layout.topMargin: constants.paddingLarge
font.pixelSize: constants.fontSizeLarge font.pixelSize: constants.fontSizeLarge
color: constants.mutedForeground color: Material.accentColor
} }
} }
@ -96,7 +96,7 @@ Pane {
Layout.fillWidth: true Layout.fillWidth: true
font.pixelSize: model.label !== '' ? constants.fontSizeLarge : constants.fontSizeMedium font.pixelSize: model.label !== '' ? constants.fontSizeLarge : constants.fontSizeMedium
text: model.label !== '' ? model.label : '<no label>' text: model.label !== '' ? model.label : '<no label>'
color: model.label !== '' ? Material.foreground : 'gray' color: model.label !== '' ? Material.foreground : constants.mutedForeground
wrapMode: Text.Wrap wrapMode: Text.Wrap
maximumLineCount: 2 maximumLineCount: 2
elide: Text.ElideRight elide: Text.ElideRight
@ -117,7 +117,7 @@ Pane {
Label { Label {
font.pixelSize: constants.fontSizeSmall font.pixelSize: constants.fontSizeSmall
text: model.date text: model.date
color: Material.accentColor color: constants.mutedForeground
} }
Label { Label {
id: fiatLabel id: fiatLabel

Loading…
Cancel
Save