|
|
|
@ -10,6 +10,15 @@ import org.kde.plasma.plasmoid 2.0
|
|
|
|
|
SequentialAnimation{
|
|
|
|
|
readonly property string bouncePropertyName: taskItem.isVertical ? "iconAnimatedOffsetX" : "iconAnimatedOffsetY"
|
|
|
|
|
|
|
|
|
|
Component.onDestruction: {
|
|
|
|
|
//! make sure to return on initial position even when the animation is destroyed in the middle
|
|
|
|
|
if (taskItem.isVertical) {
|
|
|
|
|
taskItem.iconAnimatedOffsetX = 0;
|
|
|
|
|
} else {
|
|
|
|
|
taskItem.iconAnimatedOffsetY = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Ghost animation that acts as a delayer
|
|
|
|
|
PropertyAnimation {
|
|
|
|
|
target: taskItem.parabolicItem
|
|
|
|
@ -45,4 +54,13 @@ SequentialAnimation{
|
|
|
|
|
duration: 4*launcherAnimation.speed
|
|
|
|
|
easing.type: Easing.OutBounce
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onStopped: {
|
|
|
|
|
//! make sure to return on initial position even when the animation is destroyed in the middle
|
|
|
|
|
if (taskItem.isVertical) {
|
|
|
|
|
taskItem.iconAnimatedOffsetX = 0;
|
|
|
|
|
} else {
|
|
|
|
|
taskItem.iconAnimatedOffsetY = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|