move material symbol in Network service to Icon

This commit is contained in:
end-4
2026-03-11 21:55:56 +01:00
parent 68a51b79ff
commit b4c8a63d1a
6 changed files with 23 additions and 22 deletions
@@ -34,24 +34,6 @@ Singleton {
property string networkName: ""
property int networkStrength
property string materialSymbol: root.ethernet
? "lan"
: (root.wifiEnabled && root.wifiStatus === "connected")
? (
(root.active?.strength ?? 0) > 83 ? "signal_wifi_4_bar" :
(root.active?.strength ?? 0) > 67 ? "network_wifi" :
(root.active?.strength ?? 0) > 50 ? "network_wifi_3_bar" :
(root.active?.strength ?? 0) > 33 ? "network_wifi_2_bar" :
(root.active?.strength ?? 0) > 17 ? "network_wifi_1_bar" :
"signal_wifi_0_bar"
)
: (root.wifiStatus === "connecting")
? "signal_wifi_statusbar_not_connected"
: (root.wifiStatus === "disconnected")
? "wifi_find"
: (root.wifiStatus === "disabled")
? "signal_wifi_off"
: "signal_wifi_bad"
// Control
function enableWifi(enabled = true): void {