From 796be7734135037b1357a94376d864038fa2fbc7 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sat, 6 Jun 2026 23:37:44 +0200 Subject: [PATCH] fix wifi disconnected icon --- config/Icons.qml | 3 ++- widgets/Network.qml | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config/Icons.qml b/config/Icons.qml index 4a7b354..2fd4317 100644 --- a/config/Icons.qml +++ b/config/Icons.qml @@ -11,7 +11,8 @@ Singleton { readonly property string thermo: String.fromCharCode(0xf2c9) // thermometer-half readonly property string disk: String.fromCharCode(0xf0a0) // hdd-o readonly property string wifi: String.fromCharCode(0xf1eb) // wifi - readonly property string ethernet: String.fromCharCode(0xf6ff) // network-wired + readonly property string ethernet: String.fromCodePoint(0xf0200) // md-ethernet (FA5 network-wired 0xf6ff is absent from the bundled Nerd Fonts) + readonly property string netOff: String.fromCodePoint(0xf05aa) // md-wifi-off (shown when there is no active interface) readonly property string down: String.fromCharCode(0xf063) // arrow-down readonly property string up: String.fromCharCode(0xf062) // arrow-up readonly property string clock: String.fromCharCode(0xf017) // clock-o diff --git a/widgets/Network.qml b/widgets/Network.qml index 4579cdd..ebb56e5 100644 --- a/widgets/Network.qml +++ b/widgets/Network.qml @@ -20,10 +20,11 @@ Item { spacing: Theme.spacing Text { - text: SysStats.iface.startsWith("wl") ? Icons.wifi : Icons.ethernet + text: SysStats.iface === "" ? Icons.netOff + : SysStats.iface.startsWith("wl") ? Icons.wifi : Icons.ethernet font.family: Theme.monoFont font.pixelSize: Theme.fontSize + 1 - color: Theme.sky + color: SysStats.iface === "" ? Theme.overlay : Theme.sky Layout.alignment: Qt.AlignVCenter } @@ -127,10 +128,11 @@ Item { spacing: Theme.spacing Text { - text: SysStats.iface.startsWith("wl") ? Icons.wifi : Icons.ethernet + text: SysStats.iface === "" ? Icons.netOff + : SysStats.iface.startsWith("wl") ? Icons.wifi : Icons.ethernet font.family: Theme.monoFont font.pixelSize: Theme.fontSize + 1 - color: Theme.sky + color: SysStats.iface === "" ? Theme.overlay : Theme.sky } Text { text: "Network by process"