From 88c98500730b909b5e8a0975110e5e6d6b817176 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 1 Sep 2025 11:05:00 +0200 Subject: [PATCH] settings: make pages fly up --- .config/quickshell/ii/settings.qml | 41 +++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/.config/quickshell/ii/settings.qml b/.config/quickshell/ii/settings.qml index 0164d9f2..be4a9bf6 100644 --- a/.config/quickshell/ii/settings.qml +++ b/.config/quickshell/ii/settings.qml @@ -228,19 +228,36 @@ ApplicationWindow { easing.type: Appearance.animation.elementMoveExit.type easing.bezierCurve: Appearance.animationCurves.emphasizedFirstHalf } - PropertyAction { - target: pageLoader - property: "source" - value: root.pages[root.currentPage].component + ParallelAnimation { + PropertyAction { + target: pageLoader + property: "source" + value: root.pages[root.currentPage].component + } + PropertyAction { + target: pageLoader + property: "anchors.topMargin" + value: 20 + } } - NumberAnimation { - target: pageLoader - properties: "opacity" - from: 0 - to: 1 - duration: 200 - easing.type: Appearance.animation.elementMoveEnter.type - easing.bezierCurve: Appearance.animationCurves.emphasizedLastHalf + ParallelAnimation { + NumberAnimation { + target: pageLoader + properties: "opacity" + from: 0 + to: 1 + duration: 200 + easing.type: Appearance.animation.elementMoveEnter.type + easing.bezierCurve: Appearance.animationCurves.emphasizedLastHalf + } + NumberAnimation { + target: pageLoader + properties: "anchors.topMargin" + to: 0 + duration: 200 + easing.type: Appearance.animation.elementMoveEnter.type + easing.bezierCurve: Appearance.animationCurves.emphasizedLastHalf + } } } }