From dbfe04458c7124878cc3694f4e56874f9d4c4165 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 8 Jul 2020 11:54:02 -0400 Subject: [PATCH] Set HStackView transitions that make sense --- src/gui/Base/HStackView.qml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/gui/Base/HStackView.qml b/src/gui/Base/HStackView.qml index c4061fef..22465c25 100644 --- a/src/gui/Base/HStackView.qml +++ b/src/gui/Base/HStackView.qml @@ -4,4 +4,35 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 StackView { + pushEnter: Transition { + HNumberAnimation { + property: "scale" + from: 0 + to: 1 + } + } + + pushExit: Transition { + HNumberAnimation { + property: "opacity" + from: 1 + to: 0 + } + } + + popEnter: Transition { + HNumberAnimation { + property: "opacity" + from: 0 + to: 1 + } + } + + popExit: Transition { + HNumberAnimation { + property: "scale" + from: 1 + to: 0 + } + } }