diff options
| author | Laurens Duin <85798751+Laurens256@users.noreply.github.com> | 2025-08-02 08:04:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-02 16:04:42 +1000 |
| commit | 32126e761fc4f6ddfbe32062f4bebb5daa7d7439 (patch) | |
| tree | ad57ff9f302572be8449771d84959fe4e79be906 /modules/bar/components | |
| parent | dashboard: fix player selector icons (diff) | |
| download | caelestia-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>
Diffstat (limited to 'modules/bar/components')
| -rw-r--r-- | modules/bar/components/StatusIcons.qml | 8 |
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 } |