icon fixes

This commit is contained in:
Henry Hiles 2026-11-17 20:14:50 -05:00
commit 56cba97339
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 9 additions and 1 deletions

View file

@ -38,12 +38,19 @@ Rectangle {
} }
ShellIcon { ShellIcon {
visible: Status.cellularEnabled && Status.dataActive
name: "network-transmit-receive-symbolic"
implicitSize: 14
}
ShellIcon {
visible: Status.wifiEnabled
name: Status.wifiIcon name: Status.wifiIcon
implicitSize: 14 implicitSize: 14
} }
ShellIcon { ShellIcon {
visible: Status.bluetoothConnected.length > 0 visible: Status.bluetoothEnabled
name: "bluetooth-active-symbolic" name: "bluetooth-active-symbolic"
implicitSize: 14 implicitSize: 14
} }

View file

@ -9,6 +9,7 @@ import Quickshell.Services.UPower
Singleton { Singleton {
id: root id: root
readonly property bool wifiEnabled: Networking.wifiEnabled
readonly property var wifiDevice: Networking.devices.values.find(d => d.type === DeviceType.Wifi) ?? null // qmllint disable missing-property readonly property var wifiDevice: Networking.devices.values.find(d => d.type === DeviceType.Wifi) ?? null // qmllint disable missing-property
readonly property var wifiNetwork: wifiDevice?.networks.values.find(n => n.connected) ?? null readonly property var wifiNetwork: wifiDevice?.networks.values.find(n => n.connected) ?? null
readonly property string wifiIcon: !Networking.wifiEnabled ? "network-wireless-disabled-symbolic" readonly property string wifiIcon: !Networking.wifiEnabled ? "network-wireless-disabled-symbolic"