From cc1b7ae17304cfe62da0bb77be507296404918b4 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Tue, 30 Nov 2021 18:56:27 +0100 Subject: [ui] svg love tweak sizes and alignments --- gui/components/Footer.qml | 12 +++++---- gui/gui.qrc | 2 ++ gui/main.qml | 10 +------ gui/resources/reception-0@24.svg | 58 ++++++++++++++++++++++++++++++++++++++++ gui/resources/reception-4.svg | 2 +- gui/resources/reception-4@24.svg | 57 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 126 insertions(+), 15 deletions(-) create mode 100644 gui/resources/reception-0@24.svg create mode 100644 gui/resources/reception-4@24.svg (limited to 'gui') diff --git a/gui/components/Footer.qml b/gui/components/Footer.qml index 24b6cfa..516d837 100644 --- a/gui/components/Footer.qml +++ b/gui/components/Footer.qml @@ -100,12 +100,14 @@ ToolBar { id: gwQuality height: 24 width: 24 - source: "../resources/reception-0.svg" + smooth: true + source: "../resources/reception-0@24.svg" anchors { right: parent.right - rightMargin: 20 verticalCenter: parent.verticalCenter - verticalCenterOffset: 2 + verticalCenterOffset: 0 + topMargin: 5 + rightMargin: 20 } // TODO refactor with SignalIcon ColorOverlay{ @@ -132,14 +134,14 @@ ToolBar { name: "on" PropertyChanges { target: gwQuality - source: "../resources/reception-4.svg" + source: "../resources/reception-4@24.svg" } }, State { name: "off" PropertyChanges { target: gwQuality - source: "../resources/reception-0.svg" + source: "../resources/reception-0@24.svg" } } ] diff --git a/gui/gui.qrc b/gui/gui.qrc index b467673..120e94c 100644 --- a/gui/gui.qrc +++ b/gui/gui.qrc @@ -52,6 +52,8 @@ resources/reception-0.svg resources/reception-2.svg resources/reception-4.svg + resources/reception-0@24.svg + resources/reception-4@24.svg resources/arrow-left.svg resources/globe.svg resources/ravens.svg diff --git a/gui/main.qml b/gui/main.qml index d9cbec4..116aba3 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -30,7 +30,7 @@ ApplicationWindow { minimumHeight: appHeight maximumHeight: appHeight - title: ctx ? ctx.appName : "VPN" + title: ctx ? ctx.appName : "" Material.accent: Material.Green property var ctx @@ -98,7 +98,6 @@ ApplicationWindow { ctx = JSON.parse(j) if (ctx != undefined) { locationsModel = getSortedLocations() - //console.debug("Got sorted locations: " + locationsModel) } if (ctx.errors) { console.debug("errors, setting root.error") @@ -168,12 +167,5 @@ ApplicationWindow { Component.onCompleted: { loader.source = "components/Splash.qml" - // XXX workaround for custom font not working in osx - /* - if (Qt.platform.os === "osx") { - root.font.family = robotoFont.name - root.font.weight = Font.Light - } - */ } } diff --git a/gui/resources/reception-0@24.svg b/gui/resources/reception-0@24.svg new file mode 100644 index 0000000..537f990 --- /dev/null +++ b/gui/resources/reception-0@24.svg @@ -0,0 +1,58 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/gui/resources/reception-4.svg b/gui/resources/reception-4.svg index 611bdf1..217680b 100644 --- a/gui/resources/reception-4.svg +++ b/gui/resources/reception-4.svg @@ -1,3 +1,3 @@ - \ No newline at end of file + diff --git a/gui/resources/reception-4@24.svg b/gui/resources/reception-4@24.svg new file mode 100644 index 0000000..caec436 --- /dev/null +++ b/gui/resources/reception-4@24.svg @@ -0,0 +1,57 @@ + + + + + + image/svg+xml + + + + + + + + + -- cgit v1.2.3