From 6e8a32d4e40e25e1c077394f1638a43176ebf9ed Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 24 Aug 2025 17:22:00 +1000 Subject: internal: use Anim component --- modules/launcher/ContentList.qml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'modules/launcher/ContentList.qml') diff --git a/modules/launcher/ContentList.qml b/modules/launcher/ContentList.qml index d426d58..2eaa515 100644 --- a/modules/launcher/ContentList.qml +++ b/modules/launcher/ContentList.qml @@ -55,24 +55,20 @@ Item { Behavior on state { SequentialAnimation { - NumberAnimation { + Anim { target: root property: "opacity" from: 1 to: 0 duration: Appearance.anim.durations.small - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard } PropertyAction {} - NumberAnimation { + Anim { target: root property: "opacity" from: 0 to: 1 duration: Appearance.anim.durations.small - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard } } } @@ -148,28 +144,19 @@ Item { } Behavior on opacity { - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } + Anim {} } Behavior on scale { - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } + Anim {} } } Behavior on implicitWidth { enabled: root.visibilities.launcher - NumberAnimation { + Anim { duration: Appearance.anim.durations.large - easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.emphasizedDecel } } @@ -177,9 +164,8 @@ Item { Behavior on implicitHeight { enabled: root.visibilities.launcher - NumberAnimation { + Anim { duration: Appearance.anim.durations.large - easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.emphasizedDecel } } -- cgit v1.2.3-freya