summaryrefslogtreecommitdiff
path: root/modules/controlcenter/launcher/LauncherPane.qml
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-19 13:10:09 -0500
committerATMDA <atdma2600@gmail.com>2025-11-19 13:10:09 -0500
commitaff01f01a859f0d959c76d67f346b34a714cb971 (patch)
treeb42c7f2f0c2cd54289a1e6eeb58db11e3c72a3aa /modules/controlcenter/launcher/LauncherPane.qml
parentrefactor: SplitPaneLayout now component (diff)
downloadcaelestia-shell-aff01f01a859f0d959c76d67f346b34a714cb971.tar.gz
caelestia-shell-aff01f01a859f0d959c76d67f346b34a714cb971.tar.bz2
caelestia-shell-aff01f01a859f0d959c76d67f346b34a714cb971.zip
refactor: PaneTransition now component
Diffstat (limited to 'modules/controlcenter/launcher/LauncherPane.qml')
-rw-r--r--modules/controlcenter/launcher/LauncherPane.qml73
1 files changed, 21 insertions, 52 deletions
diff --git a/modules/controlcenter/launcher/LauncherPane.qml b/modules/controlcenter/launcher/LauncherPane.qml
index 30e2953..a8c5c76 100644
--- a/modules/controlcenter/launcher/LauncherPane.qml
+++ b/modules/controlcenter/launcher/LauncherPane.qml
@@ -426,55 +426,30 @@ Item {
}
Behavior on paneId {
- SequentialAnimation {
- ParallelAnimation {
- Anim {
+ PaneTransition {
+ target: rightLauncherLoader
+ propertyActions: [
+ PropertyAction {
+ target: rightLauncherPane
+ property: "displayedApp"
+ value: rightLauncherPane.pane
+ },
+ PropertyAction {
target: rightLauncherLoader
- property: "opacity"
- to: 0
- easing.bezierCurve: Appearance.anim.curves.standardAccel
- }
- Anim {
+ property: "active"
+ value: false
+ },
+ PropertyAction {
+ target: rightLauncherPane
+ property: "targetComponent"
+ value: rightLauncherPane.nextComponent
+ },
+ PropertyAction {
target: rightLauncherLoader
- property: "scale"
- to: 0.8
- easing.bezierCurve: Appearance.anim.curves.standardAccel
+ property: "active"
+ value: true
}
- }
- PropertyAction {
- target: rightLauncherPane
- property: "displayedApp"
- value: rightLauncherPane.pane
- }
- PropertyAction {
- target: rightLauncherLoader
- property: "active"
- value: false
- }
- PropertyAction {
- target: rightLauncherPane
- property: "targetComponent"
- value: rightLauncherPane.nextComponent
- }
- PropertyAction {
- target: rightLauncherLoader
- property: "active"
- value: true
- }
- ParallelAnimation {
- Anim {
- target: rightLauncherLoader
- property: "opacity"
- to: 1
- easing.bezierCurve: Appearance.anim.curves.standardDecel
- }
- Anim {
- target: rightLauncherLoader
- property: "scale"
- to: 1
- easing.bezierCurve: Appearance.anim.curves.standardDecel
- }
- }
+ ]
}
}
@@ -639,10 +614,4 @@ Item {
}
}
}
-
- component Anim: NumberAnimation {
- target: rightLauncherLoader
- duration: Appearance.anim.durations.normal / 2
- easing.type: Easing.BezierSpline
- }
}