forked from Shinonome/dots-hyprland
Fix wifi signal strength bar display (#3063)
This commit is contained in:
@@ -36,13 +36,13 @@ Singleton {
|
||||
property int networkStrength
|
||||
property string materialSymbol: root.ethernet
|
||||
? "lan"
|
||||
: root.wifiEnabled
|
||||
: (root.wifiEnabled && root.wifiStatus === "connected")
|
||||
? (
|
||||
Network.networkStrength > 83 ? "signal_wifi_4_bar" :
|
||||
Network.networkStrength > 67 ? "network_wifi" :
|
||||
Network.networkStrength > 50 ? "network_wifi_3_bar" :
|
||||
Network.networkStrength > 33 ? "network_wifi_2_bar" :
|
||||
Network.networkStrength > 17 ? "network_wifi_1_bar" :
|
||||
(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")
|
||||
|
||||
Reference in New Issue
Block a user