diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-30 17:19:30 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-30 17:19:30 +1000 |
| commit | 1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2 (patch) | |
| tree | 0a7994bb3c59448e941741d50871cb8908eb1984 /modules/bar/components/StatusIcons.qml | |
| parent | bar: workspaces change window colour (diff) | |
| download | caelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.tar.gz caelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.tar.bz2 caelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.zip | |
bar: animate bluetooth devices
Diffstat (limited to 'modules/bar/components/StatusIcons.qml')
| -rw-r--r-- | modules/bar/components/StatusIcons.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml index de1c02d..1b0ee90 100644 --- a/modules/bar/components/StatusIcons.qml +++ b/modules/bar/components/StatusIcons.qml @@ -2,6 +2,7 @@ import "root:/widgets" import "root:/services" import "root:/utils" import "root:/config" +import Quickshell import QtQuick import QtQuick.Controls @@ -33,7 +34,7 @@ StyledRect { font.pointSize: Appearance.font.size.larger } - BoxLayout { + Box { anchors.left: vertical ? undefined : bluetooth.right anchors.leftMargin: vertical ? 0 : Appearance.padding.smaller anchors.top: vertical ? bluetooth.bottom : undefined @@ -43,7 +44,9 @@ StyledRect { anchors.verticalCenter: vertical ? undefined : bluetooth.verticalCenter Repeater { - model: Bluetooth.connected + model: ScriptModel { + values: Bluetooth.devices.filter(d => d.connected) + } MaterialIcon { required property Bluetooth.Device modelData |