From 43f8c36677f80a63abfa9b858586258a734dab17 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 17 Jun 2025 23:22:34 +1000 Subject: bar: fix workspaces and tray icons Should fix the anims not finishing --- modules/bar/components/Tray.qml | 16 ++++++++++++++++ modules/bar/components/workspaces/Workspace.qml | 11 +++++++++++ 2 files changed, 27 insertions(+) (limited to 'modules') diff --git a/modules/bar/components/Tray.qml b/modules/bar/components/Tray.qml index 6280a30..15a6bc4 100644 --- a/modules/bar/components/Tray.qml +++ b/modules/bar/components/Tray.qml @@ -29,6 +29,22 @@ Item { } } + move: Transition { + NumberAnimation { + properties: "scale" + to: 1 + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standardDecel + } + NumberAnimation { + properties: "x,y" + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } + Repeater { id: items diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml index 6cf5c40..e50f65c 100644 --- a/modules/bar/components/workspaces/Workspace.qml +++ b/modules/bar/components/workspaces/Workspace.qml @@ -62,6 +62,17 @@ Item { } } + move: Transition { + Anim { + properties: "scale" + to: 1 + easing.bezierCurve: Appearance.anim.curves.standardDecel + } + Anim { + properties: "x,y" + } + } + Repeater { model: ScriptModel { values: Hyprland.clients.filter(c => c.workspace?.id === root.ws) -- cgit v1.2.3-freya