mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03: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 {
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue