actiondrawer: Use Expo animations for pane movement

This commit is contained in:
Devin Lin 2022-12-04 12:09:00 -05:00
parent 662d01231d
commit 79fe77eaea
2 changed files with 8 additions and 8 deletions

View file

@ -204,8 +204,8 @@ Item {
PropertyAnimation on offset { PropertyAnimation on offset {
id: closeAnim id: closeAnim
duration: PlasmaCore.Units.longDuration duration: PlasmaCore.Units.veryLongDuration
easing.type: Easing.InOutQuad easing.type: Easing.OutExpo
to: 0 to: 0
onFinished: { onFinished: {
root.visible = false; root.visible = false;
@ -214,15 +214,15 @@ Item {
} }
PropertyAnimation on offset { PropertyAnimation on offset {
id: openAnim id: openAnim
duration: PlasmaCore.Units.longDuration duration: PlasmaCore.Units.veryLongDuration
easing.type: Easing.InOutQuad easing.type: Easing.OutExpo
to: contentContainerLoader.minimizedQuickSettingsOffset to: contentContainerLoader.minimizedQuickSettingsOffset
onFinished: root.opened = true onFinished: root.opened = true
} }
PropertyAnimation on offset { PropertyAnimation on offset {
id: expandAnim id: expandAnim
duration: PlasmaCore.Units.longDuration duration: PlasmaCore.Units.veryLongDuration
easing.type: Easing.InOutQuad easing.type: Easing.OutExpo
to: contentContainerLoader.maximizedQuickSettingsOffset to: contentContainerLoader.maximizedQuickSettingsOffset
onFinished: root.opened = true; onFinished: root.opened = true;
} }

View file

@ -42,8 +42,8 @@ Flickable {
NumberAnimation on position { NumberAnimation on position {
id: positionAnim id: positionAnim
duration: PlasmaCore.Units.longDuration * 2 duration: PlasmaCore.Units.veryLongDuration
easing.type: Easing.OutCubic easing.type: Easing.OutExpo
onFinished: { onFinished: {
if (root.position === keypadHeight) { if (root.position === keypadHeight) {