summaryrefslogtreecommitdiff
path: root/modules/controlcenter/network/WirelessPane.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/network/WirelessPane.qml')
-rw-r--r--modules/controlcenter/network/WirelessPane.qml45
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