diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-19 13:10:09 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-19 13:10:09 -0500 |
| commit | aff01f01a859f0d959c76d67f346b34a714cb971 (patch) | |
| tree | b42c7f2f0c2cd54289a1e6eeb58db11e3c72a3aa /modules/controlcenter/network/WirelessPane.qml | |
| parent | refactor: SplitPaneLayout now component (diff) | |
| download | caelestia-shell-aff01f01a859f0d959c76d67f346b34a714cb971.tar.gz caelestia-shell-aff01f01a859f0d959c76d67f346b34a714cb971.tar.bz2 caelestia-shell-aff01f01a859f0d959c76d67f346b34a714cb971.zip | |
refactor: PaneTransition now component
Diffstat (limited to 'modules/controlcenter/network/WirelessPane.qml')
| -rw-r--r-- | modules/controlcenter/network/WirelessPane.qml | 45 |
1 files changed, 7 insertions, 38 deletions
diff --git a/modules/controlcenter/network/WirelessPane.qml b/modules/controlcenter/network/WirelessPane.qml index 22364a1..0c8f0ae 100644 --- a/modules/controlcenter/network/WirelessPane.qml +++ b/modules/controlcenter/network/WirelessPane.qml @@ -76,40 +76,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 - } - } + ] } } @@ -158,10 +133,4 @@ RowLayout { session: root.session z: 1000 } - - component Anim: NumberAnimation { - target: loader - duration: Appearance.anim.durations.normal / 2 - easing.type: Easing.BezierSpline - } }
\ No newline at end of file |