summaryrefslogtreecommitdiff
path: root/modules/controlcenter/network/EthernetPane.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/network/EthernetPane.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/network/EthernetPane.qml')
-rw-r--r--modules/controlcenter/network/EthernetPane.qml45
1 files changed, 7 insertions, 38 deletions
diff --git a/modules/controlcenter/network/EthernetPane.qml b/modules/controlcenter/network/EthernetPane.qml
index 6a50cde..fc979c3 100644
--- a/modules/controlcenter/network/EthernetPane.qml
+++ b/modules/controlcenter/network/EthernetPane.qml
@@ -77,40 +77,15 @@ RowLayout {
}
Behavior on paneId {
- SequentialAnimation {
- ParallelAnimation {
- Anim {
+ PaneTransition {
+ target: loader
+ propertyActions: [
+ PropertyAction {
target: loader
- property: "opacity"
- to: 0
- easing.bezierCurve: Appearance.anim.curves.standardAccel
+ property: "targetComponent"
+ value: loader.nextComponent
}
- Anim {
- target: loader
- property: "scale"
- to: 0.8
- easing.bezierCurve: Appearance.anim.curves.standardAccel
- }
- }
- PropertyAction {
- target: loader
- property: "targetComponent"
- value: loader.nextComponent
- }
- ParallelAnimation {
- Anim {
- target: loader
- property: "opacity"
- to: 1
- easing.bezierCurve: Appearance.anim.curves.standardDecel
- }
- Anim {
- target: loader
- property: "scale"
- to: 1
- easing.bezierCurve: Appearance.anim.curves.standardDecel
- }
- }
+ ]
}
}
@@ -153,10 +128,4 @@ RowLayout {
}
}
}
-
- component Anim: NumberAnimation {
- target: loader
- duration: Appearance.anim.durations.normal / 2
- easing.type: Easing.BezierSpline
- }
} \ No newline at end of file