Use activated icon in status bar when Bluetooth is connected

This commit is contained in:
Mr. Athozus 2024-04-29 00:27:30 +02:00 committed by Devin Lin
parent 0e01bd291f
commit a889968e25
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ import org.kde.bluezqt 1.0 as BluezQt
QtObject { QtObject {
id: root id: root
readonly property bool isVisible: BluezQt.Manager.bluetoothOperational readonly property bool isVisible: BluezQt.Manager.bluetoothOperational
readonly property string icon: deviceConnected ? "preferences-system-bluetooth-activated" : "preferences-system-bluetooth" readonly property string icon: deviceConnected ? "network-bluetooth-activated" : "network-bluetooth"
property bool deviceConnected: false property bool deviceConnected: false

View file

@ -15,7 +15,7 @@ import org.kde.plasma.private.mobileshell as MobileShell
Kirigami.Icon { Kirigami.Icon {
id: connectionIcon id: connectionIcon
source: "network-bluetooth" source: MobileShell.BluetoothInfo.icon
visible: MobileShell.BluetoothInfo.isVisible visible: MobileShell.BluetoothInfo.isVisible
} }