From 4359b7447baaf21f50bf4c04c01b7399fff9a631 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 29 Apr 2025 20:55:41 +1000 Subject: bar: add missed colour animation Missed animations for workspaces --- modules/bar/components/workspaces/ActiveIndicator.qml | 16 ++++++++++++++++ modules/bar/components/workspaces/OccupiedBg.qml | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/modules/bar/components/workspaces/ActiveIndicator.qml b/modules/bar/components/workspaces/ActiveIndicator.qml index f6a78d2..027b575 100644 --- a/modules/bar/components/workspaces/ActiveIndicator.qml +++ b/modules/bar/components/workspaces/ActiveIndicator.qml @@ -39,6 +39,14 @@ Rectangle { visible: false anchors.fill: parent color: Appearance.colours.base + + Behavior on color { + ColorAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } } OpacityMask { @@ -54,6 +62,14 @@ Rectangle { anchors.verticalCenter: root.vertical ? undefined : parent.verticalCenter } + Behavior on color { + ColorAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } + Behavior on leading { Anim {} } diff --git a/modules/bar/components/workspaces/OccupiedBg.qml b/modules/bar/components/workspaces/OccupiedBg.qml index e831558..520443f 100644 --- a/modules/bar/components/workspaces/OccupiedBg.qml +++ b/modules/bar/components/workspaces/OccupiedBg.qml @@ -78,6 +78,14 @@ BoxLayout { } ] + Behavior on color { + ColorAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } + Behavior on roundLeft { SequentialAnimation { PropertyAction { -- cgit v1.2.3-freya