From 1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 30 Apr 2025 17:19:30 +1000 Subject: bar: animate bluetooth devices --- modules/bar/components/StatusIcons.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/bar/components/StatusIcons.qml') 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 -- cgit v1.2.3-freya