From c6ff66be79fa9616c981d950439f0e0b048c72c3 Mon Sep 17 00:00:00 2001 From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Mon, 4 Nov 2019 12:48:07 +0100 Subject: [PATCH] Smoother deletions: Added animation for removeDisplaced including sequential opacity change and displacement animation Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- src/gui/traywindow.qml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/gui/traywindow.qml b/src/gui/traywindow.qml index 828ec230f..a49bf2b9d 100644 --- a/src/gui/traywindow.qml +++ b/src/gui/traywindow.qml @@ -369,11 +369,22 @@ Window { } add: Transition { - NumberAnimation { properties: "y"; from: -60; duration: 150; easing.type: Easing.Linear } + NumberAnimation { properties: "y"; from: -60; duration: 100; easing.type: Easing.Linear } + } + + remove: Transition { + NumberAnimation { property: "opacity"; from: 1.0; to: 0; duration: 100 } + } + + removeDisplaced: Transition { + SequentialAnimation { + PauseAnimation { duration: 100} + NumberAnimation { properties: "y"; duration: 100; easing.type: Easing.Linear } + } } displaced: Transition { - NumberAnimation { properties: "y"; duration: 150; easing.type: Easing.Linear } + NumberAnimation { properties: "y"; duration: 100; easing.type: Easing.Linear } } focus: true