icon fixes
This commit is contained in:
parent
79d36e01be
commit
56cba97339
2 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue