fix wifi disconnected icon
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user