From 32126e761fc4f6ddfbe32062f4bebb5daa7d7439 Mon Sep 17 00:00:00 2001 From: Laurens Duin <85798751+Laurens256@users.noreply.github.com> Date: Sat, 2 Aug 2025 08:04:42 +0200 Subject: 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> --- modules/bar/components/StatusIcons.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules') 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 } -- cgit v1.2.3-freya