From 37b4352c29d5955026b1f9a233fd41c9fe05842b Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 11 Nov 2022 16:46:24 +0100 Subject: [PATCH] qml: some styling fixes --- electrum/gui/qml/components/Channels.qml | 2 +- electrum/gui/qml/components/Constants.qml | 1 + electrum/gui/qml/components/controls/ChannelDelegate.qml | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/components/Channels.qml b/electrum/gui/qml/components/Channels.qml index 02a8f9aa3..e5bc282a8 100644 --- a/electrum/gui/qml/components/Channels.qml +++ b/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 diff --git a/electrum/gui/qml/components/Constants.qml b/electrum/gui/qml/components/Constants.qml index 85a65a9b8..8c35bfe60 100644 --- a/electrum/gui/qml/components/Constants.qml +++ b/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' diff --git a/electrum/gui/qml/components/controls/ChannelDelegate.qml b/electrum/gui/qml/components/controls/ChannelDelegate.qml index eb202cf09..665b6c131 100644 --- a/electrum/gui/qml/components/controls/ChannelDelegate.qml +++ b/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 } }