diff --git a/Modules/Bar/Bar.qml b/Modules/Bar/Bar.qml index 31942c1..4db35a7 100644 --- a/Modules/Bar/Bar.qml +++ b/Modules/Bar/Bar.qml @@ -106,6 +106,8 @@ Variants { id: demoPanelToggle icon: "experiment" tooltipText: "Open demo panel" + sizeMultiplier: 0.8 + showBorder: false anchors.verticalCenter: parent.verticalCenter onClicked: function () { demoPanel.isLoaded = !demoPanel.isLoaded @@ -116,6 +118,8 @@ Variants { id: sidePanelToggle icon: "widgets" tooltipText: "Open side panel" + sizeMultiplier: 0.8 + showBorder: false anchors.verticalCenter: parent.verticalCenter onClicked: function () { // Map this button's center to the screen and open the side panel below it diff --git a/Modules/Bar/WiFi.qml b/Modules/Bar/WiFi.qml index b343cd8..e768aa0 100644 --- a/Modules/Bar/WiFi.qml +++ b/Modules/Bar/WiFi.qml @@ -11,7 +11,8 @@ NIconButton { readonly property real scaling: Scaling.scale(screen) readonly property bool wifiEnabled: Settings.data.network.wifiEnabled - + sizeMultiplier: 0.8 + showBorder: false icon: { let connected = false for (const net in network.networks) { diff --git a/Modules/Bar/WiFiMenu.qml b/Modules/Bar/WiFiMenu.qml index 370d16a..dad6c9d 100644 --- a/Modules/Bar/WiFiMenu.qml +++ b/Modules/Bar/WiFiMenu.qml @@ -77,6 +77,7 @@ NLoader { NIconButton { icon: "refresh" + sizeMultiplier: 0.8 onClicked: function () { network.refreshNetworks() } @@ -84,6 +85,7 @@ NLoader { NIconButton { icon: "close" + sizeMultiplier: 0.8 onClicked: function () { wifiPanel.visible = false network.onMenuClosed() diff --git a/Modules/DemoPanel/DemoPanel.qml b/Modules/DemoPanel/DemoPanel.qml index 183291d..af1dbc1 100644 --- a/Modules/DemoPanel/DemoPanel.qml +++ b/Modules/DemoPanel/DemoPanel.qml @@ -82,7 +82,6 @@ NLoader { } NIconButton { icon: "refresh" - sizeMultiplier: 1.0 fontPointSize: Style.fontSizeXL * scaling onClicked: function () { Scaling.overrideEnabled = false @@ -107,7 +106,6 @@ NLoader { NIconButton { id: myIconButton icon: "celebration" - sizeMultiplier: 1.0 fontPointSize: Style.fontSizeXL * scaling } diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index 1a67b03..0cf6017 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -185,6 +185,8 @@ PanelWindow { } NIconButton { + sizeMultiplier: 0.8 + showBorder: false anchors.top: parent.top anchors.right: parent.right anchors.margins: Style.marginSmall * scaling diff --git a/Modules/SidePanel/ProfileCard.qml b/Modules/SidePanel/ProfileCard.qml index dac0715..ee4b1c6 100644 --- a/Modules/SidePanel/ProfileCard.qml +++ b/Modules/SidePanel/ProfileCard.qml @@ -59,7 +59,6 @@ NBox { } NIconButton { icon: "settings" - sizeMultiplier: 0.9 onClicked: function () { if (!root.settingsWindow) { const comp = Qt.createComponent("../Settings/SettingsWindow.qml") @@ -80,17 +79,15 @@ NBox { } NIconButton { icon: "power_settings_new" - sizeMultiplier: 0.9 } } } - Timer { - interval: 60000 - repeat: true - running: true - onTriggered: uptimeProcess.running = true + interval: 60000 + repeat: true + running: true + onTriggered: uptimeProcess.running = true } Process { @@ -101,7 +98,6 @@ NBox { stdout: StdioCollector { onStreamFinished: { var uptimeSeconds = parseFloat(this.text.trim().split(' ')[0]) - var minutes = Math.floor(uptimeSeconds / 60) % 60 var hours = Math.floor(uptimeSeconds / 3600) % 24 var days = Math.floor(uptimeSeconds / 86400) diff --git a/Modules/SidePanel/SidePanel.qml b/Modules/SidePanel/SidePanel.qml index 10d911f..3a25894 100644 --- a/Modules/SidePanel/SidePanel.qml +++ b/Modules/SidePanel/SidePanel.qml @@ -138,19 +138,16 @@ NLoader { // Performance NIconButton { icon: "speed" - sizeMultiplier: 1.0 onClicked: function () {/* TODO: hook to power profile */ } } // Balanced NIconButton { icon: "balance" - sizeMultiplier: 1.0 onClicked: function () {/* TODO: hook to power profile */ } } // Eco NIconButton { icon: "eco" - sizeMultiplier: 1.0 onClicked: function () {/* TODO: hook to power profile */ } } Item { @@ -175,12 +172,10 @@ NLoader { // Record NIconButton { icon: "fiber_manual_record" - sizeMultiplier: 1.0 } // Wallpaper NIconButton { icon: "image" - sizeMultiplier: 1.0 } Item { Layout.fillWidth: true