From 1ad259ff9bedbce9b3cbb7e6490ff4ad75ec2c4b Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 7 Mar 2026 21:49:38 +0100 Subject: [PATCH] change spring anims to expressive default spatial --- .../ii/modules/hefty/topLayer/HTopLayerPanel.qml | 12 ++++-------- .../hefty/topLayer/bar/HBarWidgetShapeBackground.qml | 7 ++++--- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/HTopLayerPanel.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/HTopLayerPanel.qml index bd7da8d83..e0241722e 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/HTopLayerPanel.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/HTopLayerPanel.qml @@ -53,14 +53,10 @@ PanelWindow { anchors.fill: parent polygonIsNormalized: false roundedPolygon: MaterialShapes.customPolygon([new MaterialShapes.PointNRound(new Offset.Offset(root.screen.width, 0), new CornerRounding.CornerRounding(9999)),]) - // animation: NumberAnimation { - // duration: 500 - // easing.type: Easing.BezierSpline - // easing.bezierCurve: Appearance.animationCurves.expressiveDefaultSpatial - // } - animation: SpringAnimation { - spring: 3.5 - damping: 0.35 + animation: NumberAnimation { + duration: 500 + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.animationCurves.expressiveDefaultSpatial } color: Appearance.colors.colLayer0 borderWidth: (root.currentPanel === bar && Config.options.bar.cornerStyle !== 1) ? 0 : 1 diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml index aca8d7da7..6c32d72ba 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml @@ -225,9 +225,10 @@ Shapes.ShapeCanvas { return MaterialShapes.customPolygon(points); } - component Anim: SpringAnimation { - spring: 3.5 - damping: 0.3 + component Anim: NumberAnimation { + duration: C.Appearance.animation.elementMove.duration + easing.type: C.Appearance.animation.elementMove.type + easing.bezierCurve: C.Appearance.animation.elementMove.bezierCurve } Component {