mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
actiondrawer: Use Expo animations for pane movement
This commit is contained in:
parent
662d01231d
commit
79fe77eaea
2 changed files with 8 additions and 8 deletions
|
|
@ -204,8 +204,8 @@ Item {
|
|||
|
||||
PropertyAnimation on offset {
|
||||
id: closeAnim
|
||||
duration: PlasmaCore.Units.longDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
duration: PlasmaCore.Units.veryLongDuration
|
||||
easing.type: Easing.OutExpo
|
||||
to: 0
|
||||
onFinished: {
|
||||
root.visible = false;
|
||||
|
|
@ -214,15 +214,15 @@ Item {
|
|||
}
|
||||
PropertyAnimation on offset {
|
||||
id: openAnim
|
||||
duration: PlasmaCore.Units.longDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
duration: PlasmaCore.Units.veryLongDuration
|
||||
easing.type: Easing.OutExpo
|
||||
to: contentContainerLoader.minimizedQuickSettingsOffset
|
||||
onFinished: root.opened = true
|
||||
}
|
||||
PropertyAnimation on offset {
|
||||
id: expandAnim
|
||||
duration: PlasmaCore.Units.longDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
duration: PlasmaCore.Units.veryLongDuration
|
||||
easing.type: Easing.OutExpo
|
||||
to: contentContainerLoader.maximizedQuickSettingsOffset
|
||||
onFinished: root.opened = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ Flickable {
|
|||
|
||||
NumberAnimation on position {
|
||||
id: positionAnim
|
||||
duration: PlasmaCore.Units.longDuration * 2
|
||||
easing.type: Easing.OutCubic
|
||||
duration: PlasmaCore.Units.veryLongDuration
|
||||
easing.type: Easing.OutExpo
|
||||
|
||||
onFinished: {
|
||||
if (root.position === keypadHeight) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue