From 79d25833bfd261c36d954cf57845e5a416aaf849 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Thu, 30 Sep 2021 23:37:32 +0200 Subject: [ui] size tweaks and new assets plus work on the systray menu --- gui/components/Footer.qml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'gui/components/Footer.qml') diff --git a/gui/components/Footer.qml b/gui/components/Footer.qml index 1b0d8fa..b806807 100644 --- a/gui/components/Footer.qml +++ b/gui/components/Footer.qml @@ -34,18 +34,22 @@ ToolBar { background.implicitHeight: 32 background.implicitWidth: 32 */ - icon.width: 20 - icon.height: 20 - icon.source: stackView.depth > 1 ? "" : "../resources/globe.svg" + icon { + width: 20 + height: 20 + source: stackView.depth > 1 ? "" : "../resources/globe.svg" + } onClicked: stackView.push("Locations.qml") } Label { id: locationLabel - anchors.left: gwButton.right - anchors.leftMargin: -7 - anchors.verticalCenter: parent.verticalCenter - anchors.verticalCenterOffset: 7 + anchors { + left: gwButton.right + leftMargin: -7 + verticalCenter: parent.verticalCenter + verticalCenterOffset: 7 + } text: locationStr() color: getLocationColor() } @@ -57,14 +61,17 @@ ToolBar { Image { id: bridge + smooth: true visible: isBridgeSelected() - height: 24 - width: 24 - source: "../resources/bridge.png" - anchors.verticalCenter: parent.verticalCenter - anchors.verticalCenterOffset: 5 - anchors.right: gwQuality.left - anchors.rightMargin: 10 + width: 40 + source: "../resources/bridge.svg" + fillMode: Image.PreserveAspectFit + anchors { + verticalCenter: parent.verticalCenter + verticalCenterOffset: 5 + right: gwQuality.left + rightMargin: 10 + } } Image { @@ -75,7 +82,7 @@ ToolBar { anchors.right: parent.right anchors.rightMargin: 20 anchors.verticalCenter: parent.verticalCenter - anchors.verticalCenterOffset: 5 + anchors.verticalCenterOffset: 0 // TODO refactor with SignalIcon ColorOverlay{ anchors.fill: gwQuality -- cgit v1.2.3