change spring anims to expressive default spatial

This commit is contained in:
end-4
2026-03-07 21:49:38 +01:00
parent 2109cf5e09
commit 1ad259ff9b
2 changed files with 8 additions and 11 deletions
@@ -53,14 +53,10 @@ PanelWindow {
anchors.fill: parent anchors.fill: parent
polygonIsNormalized: false polygonIsNormalized: false
roundedPolygon: MaterialShapes.customPolygon([new MaterialShapes.PointNRound(new Offset.Offset(root.screen.width, 0), new CornerRounding.CornerRounding(9999)),]) roundedPolygon: MaterialShapes.customPolygon([new MaterialShapes.PointNRound(new Offset.Offset(root.screen.width, 0), new CornerRounding.CornerRounding(9999)),])
// animation: NumberAnimation { animation: NumberAnimation {
// duration: 500 duration: 500
// easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
// easing.bezierCurve: Appearance.animationCurves.expressiveDefaultSpatial easing.bezierCurve: Appearance.animationCurves.expressiveDefaultSpatial
// }
animation: SpringAnimation {
spring: 3.5
damping: 0.35
} }
color: Appearance.colors.colLayer0 color: Appearance.colors.colLayer0
borderWidth: (root.currentPanel === bar && Config.options.bar.cornerStyle !== 1) ? 0 : 1 borderWidth: (root.currentPanel === bar && Config.options.bar.cornerStyle !== 1) ? 0 : 1
@@ -225,9 +225,10 @@ Shapes.ShapeCanvas {
return MaterialShapes.customPolygon(points); return MaterialShapes.customPolygon(points);
} }
component Anim: SpringAnimation { component Anim: NumberAnimation {
spring: 3.5 duration: C.Appearance.animation.elementMove.duration
damping: 0.3 easing.type: C.Appearance.animation.elementMove.type
easing.bezierCurve: C.Appearance.animation.elementMove.bezierCurve
} }
Component { Component {