Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/LockScreenUi.qml
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 71 | Item { | |||
---|---|---|---|---|---|
90 | 90 | | |||
91 | transitions: | 91 | transitions: | ||
92 | Transition { | 92 | Transition { | ||
93 | // we only animate switchting to another session, because kscreenlocker doesn't get notified when | 93 | // we only animate switchting to another session, because kscreenlocker doesn't get notified when | ||
94 | // coming from another session back and so we wouldn't know when to trigger the animation exactly | 94 | // coming from another session back and so we wouldn't know when to trigger the animation exactly | ||
95 | from: "" | 95 | from: "" | ||
96 | to: "onOtherSession" | 96 | to: "onOtherSession" | ||
97 | 97 | | |||
98 | PropertyAnimation { id: stateChangeAnimation; properties: "y"; duration: 300; easing: Easing.InQuad} | 98 | PropertyAnimation { id: stateChangeAnimation; properties: "y"; duration: 300; easing.type: Easing.InQuad} | ||
99 | PropertyAnimation { properties: "opacity"; duration: 300} | 99 | PropertyAnimation { properties: "opacity"; duration: 300} | ||
100 | 100 | | |||
101 | onRunningChanged: { | 101 | onRunningChanged: { | ||
102 | // after the animation has finished switch session: since we only animate the transition TO state "onOtherSession" | 102 | // after the animation has finished switch session: since we only animate the transition TO state "onOtherSession" | ||
103 | // and not the other way around, we don't have to check the state we transitioned into | 103 | // and not the other way around, we don't have to check the state we transitioned into | ||
104 | if (/* lockScreenRoot.state == "onOtherSession" && */ !running) { | 104 | if (/* lockScreenRoot.state == "onOtherSession" && */ !running) { | ||
105 | mainStack.currentItem.switchSession() | 105 | mainStack.currentItem.switchSession() | ||
106 | } | 106 | } | ||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |