summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-30 17:19:30 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-30 17:19:30 +1000
commit1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2 (patch)
tree0a7994bb3c59448e941741d50871cb8908eb1984 /modules
parentbar: workspaces change window colour (diff)
downloadcaelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.tar.gz
caelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.tar.bz2
caelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.zip
bar: animate bluetooth devices
Diffstat (limited to 'modules')
-rw-r--r--modules/bar/components/StatusIcons.qml7
-rw-r--r--modules/bar/components/workspaces/Workspace.qml16
2 files changed, 6 insertions, 17 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
diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml
index 9ba82a3..2ca384e 100644
--- a/modules/bar/components/workspaces/Workspace.qml
+++ b/modules/bar/components/workspaces/Workspace.qml
@@ -41,26 +41,12 @@ Item {
height: BarConfig.sizes.innerHeight
}
- Grid {
- flow: root.vertical ? GridLayout.TopToBottom : GridLayout.LeftToRight
- rows: root.vertical ? -1 : 1
- columns: root.vertical ? 1 : -1
- spacing: Appearance.padding.small
-
+ Box {
anchors.left: vertical ? undefined : indicator.right
anchors.top: vertical ? indicator.bottom : undefined
anchors.verticalCenter: vertical ? undefined : indicator.verticalCenter
anchors.horizontalCenter: vertical ? indicator.horizontalCenter : undefined
- add: Transition {
- Anim {
- properties: "scale"
- from: 0
- to: 1
- duration: Appearance.anim.durations.small
- }
- }
-
Repeater {
model: ScriptModel {
values: Hyprland.clients.filter(c => c.workspace.id === root.ws)