fix wifi disconnected icon

This commit is contained in:
2026-06-06 23:37:44 +02:00
parent 7a95288f81
commit 796be77341
2 changed files with 8 additions and 5 deletions

View File

@@ -11,7 +11,8 @@ Singleton {
readonly property string thermo: String.fromCharCode(0xf2c9) // thermometer-half readonly property string thermo: String.fromCharCode(0xf2c9) // thermometer-half
readonly property string disk: String.fromCharCode(0xf0a0) // hdd-o readonly property string disk: String.fromCharCode(0xf0a0) // hdd-o
readonly property string wifi: String.fromCharCode(0xf1eb) // wifi 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 down: String.fromCharCode(0xf063) // arrow-down
readonly property string up: String.fromCharCode(0xf062) // arrow-up readonly property string up: String.fromCharCode(0xf062) // arrow-up
readonly property string clock: String.fromCharCode(0xf017) // clock-o readonly property string clock: String.fromCharCode(0xf017) // clock-o

View File

@@ -20,10 +20,11 @@ Item {
spacing: Theme.spacing spacing: Theme.spacing
Text { 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.family: Theme.monoFont
font.pixelSize: Theme.fontSize + 1 font.pixelSize: Theme.fontSize + 1
color: Theme.sky color: SysStats.iface === "" ? Theme.overlay : Theme.sky
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
} }
@@ -127,10 +128,11 @@ Item {
spacing: Theme.spacing spacing: Theme.spacing
Text { 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.family: Theme.monoFont
font.pixelSize: Theme.fontSize + 1 font.pixelSize: Theme.fontSize + 1
color: Theme.sky color: SysStats.iface === "" ? Theme.overlay : Theme.sky
} }
Text { Text {
text: "Network by process" text: "Network by process"