summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurens Duin <85798751+Laurens256@users.noreply.github.com>2025-08-02 08:04:42 +0200
committerGitHub <noreply@github.com>2025-08-02 16:04:42 +1000
commit32126e761fc4f6ddfbe32062f4bebb5daa7d7439 (patch)
treead57ff9f302572be8449771d84959fe4e79be906
parentdashboard: fix player selector icons (diff)
downloadcaelestia-shell-32126e761fc4f6ddfbe32062f4bebb5daa7d7439.tar.gz
caelestia-shell-32126e761fc4f6ddfbe32062f4bebb5daa7d7439.tar.bz2
caelestia-shell-32126e761fc4f6ddfbe32062f4bebb5daa7d7439.zip
bar: add bluetooth connected icon state (#311)
* feat: add bluetooth connected icon state * fix: improve connected check * chore: cleanup * format --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
-rw-r--r--modules/bar/components/StatusIcons.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml
index 692f48f..f5b3d8a 100644
--- a/modules/bar/components/StatusIcons.qml
+++ b/modules/bar/components/StatusIcons.qml
@@ -109,7 +109,13 @@ Item {
// Bluetooth icon
MaterialIcon {
animate: true
- text: Bluetooth.defaultAdapter?.enabled ? "bluetooth" : "bluetooth_disabled"
+ text: {
+ if (!Bluetooth.defaultAdapter?.enabled)
+ return "bluetooth_disabled";
+ if (Bluetooth.devices.values.some(d => d.connected))
+ return "bluetooth_connected";
+ return "bluetooth";
+ }
color: root.colour
}