Browse Source

qml: some styling fixes

patch-4
Sander van Grieken 2 years ago
parent
commit
37b4352c29
  1. 2
      electrum/gui/qml/components/Channels.qml
  2. 1
      electrum/gui/qml/components/Constants.qml
  3. 6
      electrum/gui/qml/components/controls/ChannelDelegate.qml

2
electrum/gui/qml/components/Channels.qml

@ -19,7 +19,7 @@ Pane {
GridLayout {
id: summaryLayout
Layout.fillWidth: true
Layout.preferredWidth: parent.width
Layout.topMargin: constants.paddingLarge
Layout.leftMargin: constants.paddingLarge
Layout.rightMargin: constants.paddingLarge

1
electrum/gui/qml/components/Constants.qml

@ -33,6 +33,7 @@ Item {
property color colorError: '#ffff8080'
property color colorLightningLocal: "blue"
property color colorLightningRemote: "yellow"
property color colorChannelOpen: "#ff80ff80"
property color colorPiechartOnchain: Qt.darker(Material.accentColor, 1.50)
property color colorPiechartFrozen: 'gray'

6
electrum/gui/qml/components/controls/ChannelDelegate.qml

@ -68,7 +68,11 @@ ItemDelegate {
Label {
text: model.state
color: _closed ? constants.mutedForeground : Material.foreground
color: _closed
? constants.mutedForeground
: model.state == 'OPEN'
? constants.colorChannelOpen
: Material.foreground
}
}

Loading…
Cancel
Save