From ae446377f8dd8609d1413076a9c442b9b339ae7c Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 19 Jul 2023 14:14:24 +0200 Subject: [PATCH] qml: work around toolbar layout not right-aligning indicators when indicators toggle visibility --- electrum/gui/qml/components/main.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index 69f13da86..588f8c24b 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -201,8 +201,10 @@ ApplicationWindow } } - LightningNetworkStatusIndicator {} - OnchainNetworkStatusIndicator {} + LightningNetworkStatusIndicator { + id: lnnsi + } + OnchainNetworkStatusIndicator { } } } } @@ -212,7 +214,11 @@ ApplicationWindow Item { Layout.preferredHeight: 1 Layout.topMargin: -1 - Layout.preferredWidth: watchOnlyIndicator.visible ? app.width : 1 + Layout.preferredWidth: watchOnlyIndicator.visible + ? 1 + : lnnsi.visible + ? 2 + : 3 } } }