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
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
@@ -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 {