settings: make pages fly up

This commit is contained in:
end-4
2025-09-01 11:05:00 +02:00
parent 75fcb9a990
commit 88c9850073
+17
View File
@@ -228,11 +228,19 @@ ApplicationWindow {
easing.type: Appearance.animation.elementMoveExit.type easing.type: Appearance.animation.elementMoveExit.type
easing.bezierCurve: Appearance.animationCurves.emphasizedFirstHalf easing.bezierCurve: Appearance.animationCurves.emphasizedFirstHalf
} }
ParallelAnimation {
PropertyAction { PropertyAction {
target: pageLoader target: pageLoader
property: "source" property: "source"
value: root.pages[root.currentPage].component value: root.pages[root.currentPage].component
} }
PropertyAction {
target: pageLoader
property: "anchors.topMargin"
value: 20
}
}
ParallelAnimation {
NumberAnimation { NumberAnimation {
target: pageLoader target: pageLoader
properties: "opacity" properties: "opacity"
@@ -242,6 +250,15 @@ ApplicationWindow {
easing.type: Appearance.animation.elementMoveEnter.type easing.type: Appearance.animation.elementMoveEnter.type
easing.bezierCurve: Appearance.animationCurves.emphasizedLastHalf 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
}
}
} }
} }
} }