You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
latte-dock/plasmoid/package/contents/ui/task/animations/FastRestoreAnimation.qml

59 lines
1.4 KiB
QML

/*
SPDX-FileCopyrightText: 2016 Smith AR <audoban@openmailbox.org>
SPDX-FileCopyrightText: 2016 Michail Vourlakos <mvourlakos@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.0
import org.kde.plasma.plasmoid 2.0
///////Restore Zoom Animation/////
SequentialAnimation{
id: fastRestoreAnimation
property int speed: 5*taskItem.animationTime
ScriptAction {
script: {
taskItem.inFastRestoreAnimation = true;
taskItem.inBlockingAnimation = true;
}
}
ParallelAnimation {
PropertyAnimation {
target: taskItem.parabolicItem
property: "zoom"
to: 1
duration: fastRestoreAnimation.speed
easing.type: Easing.InCubic
}
PropertyAnimation {
target: taskItem.parabolicItem
property: "zoomLength"
to: 1
duration: fastRestoreAnimation.speed
easing.type: Easing.InCubic
}
PropertyAnimation {
target: taskItem.parabolicItem
property: "zoomThickness"
to: 1
duration: fastRestoreAnimation.speed
easing.type: Easing.InCubic
}
}
onStopped: {
newWindowAnimation.stop();
taskItem.inBlockingAnimation = false;
taskItem.inFastRestoreAnimation = false;
// console.log("Fast Restore Animation ended...");
}
}