WallpaperOverview: make anims consistent

This commit is contained in:
end-4
2025-08-18 18:27:54 +07:00
parent fe23017a97
commit 8feee4e61a
@@ -134,17 +134,11 @@ Scope {
} }
Behavior on implicitWidth { Behavior on implicitWidth {
SpringAnimation { animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
spring: 3
damping: 0.2
}
} }
Behavior on implicitHeight { Behavior on implicitHeight {
SpringAnimation { animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
spring: 3
damping: 0.2
}
} }
Keys.onPressed: event => { Keys.onPressed: event => {
@@ -247,17 +241,11 @@ Scope {
property bool isHovered: false property bool isHovered: false
Behavior on width { Behavior on width {
NumberAnimation { animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
duration: animationCurves.expressiveDefaultSpatialDuration
easing.bezierCurve: animationCurves.expressiveDefaultSpatial
}
} }
Behavior on height { Behavior on height {
NumberAnimation { animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
duration: animationCurves.expressiveDefaultSpatialDuration
easing.bezierCurve: animationCurves.expressiveDefaultSpatial
}
} }
Rectangle { Rectangle {
@@ -315,10 +303,7 @@ Scope {
opacity: status === Image.Ready ? 1 : 0 opacity: status === Image.Ready ? 1 : 0
Behavior on opacity { Behavior on opacity {
NumberAnimation { animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
duration: 200
easing.type: Easing.OutCubic
}
} }
} }
} }