From 8feee4e61a0b06832ae894e499a4ec72c90a4993 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 18 Aug 2025 18:27:54 +0700 Subject: [PATCH] WallpaperOverview: make anims consistent --- .../wallpaperOverview/WallpaperOverview.qml | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.config/quickshell/ii/modules/wallpaperOverview/WallpaperOverview.qml b/.config/quickshell/ii/modules/wallpaperOverview/WallpaperOverview.qml index 7ca666b1..70d065db 100644 --- a/.config/quickshell/ii/modules/wallpaperOverview/WallpaperOverview.qml +++ b/.config/quickshell/ii/modules/wallpaperOverview/WallpaperOverview.qml @@ -134,17 +134,11 @@ Scope { } Behavior on implicitWidth { - SpringAnimation { - spring: 3 - damping: 0.2 - } + animation: Appearance.animation.elementMove.numberAnimation.createObject(this) } Behavior on implicitHeight { - SpringAnimation { - spring: 3 - damping: 0.2 - } + animation: Appearance.animation.elementMove.numberAnimation.createObject(this) } Keys.onPressed: event => { @@ -247,17 +241,11 @@ Scope { property bool isHovered: false Behavior on width { - NumberAnimation { - duration: animationCurves.expressiveDefaultSpatialDuration - easing.bezierCurve: animationCurves.expressiveDefaultSpatial - } + animation: Appearance.animation.elementMove.numberAnimation.createObject(this) } Behavior on height { - NumberAnimation { - duration: animationCurves.expressiveDefaultSpatialDuration - easing.bezierCurve: animationCurves.expressiveDefaultSpatial - } + animation: Appearance.animation.elementMove.numberAnimation.createObject(this) } Rectangle { @@ -315,10 +303,7 @@ Scope { opacity: status === Image.Ready ? 1 : 0 Behavior on opacity { - NumberAnimation { - duration: 200 - easing.type: Easing.OutCubic - } + animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) } } }