/** SPDX-FileCopyrightText: 2021 Noah Davis <noahadvs@gmail.com>* SPDX-License-Identifier: LGPL-2.0-or-later*/pragma ComponentBehavior: Boundimport QtQuickimport QtQuick.Templates as Timport org.kde.kirigami as KirigamiT.StackView {id: rootproperty bool reverseTransitions: falseproperty bool movementTransitionsEnabled: falseimplicitWidth: implicitContentWidth + leftPadding + rightPaddingimplicitHeight: implicitContentHeight + topPadding + bottomPaddingclip: busycontentItem: currentItemAccessible.ignored: truepopEnter: enterTransitionpopExit: exitTransitionpushEnter: enterTransitionpushExit: exitTransitionreplaceEnter: enterTransitionreplaceExit: exitTransition// Using NumberAnimation instead of YAnimator because the latter wasn't always smooth enoughTransition {id: enterTransitionNumberAnimation {properties: "y"from: (root.reverseTransitions ? -0.5 : 0.5) * -root.heightto: 0duration: root.movementTransitionsEnabled ? Kirigami.Units.longDuration : 0easing.type: Easing.OutCubic}NumberAnimation { property: "opacity"from: 0.0to: 1.0duration: Kirigami.Units.longDurationeasing.type: Easing.OutCubic}}Transition {id: exitTransitionNumberAnimation {property: "y"from: 0to: (root.reverseTransitions ? -0.5 : 0.5) * root.heightduration: root.movementTransitionsEnabled ? Kirigami.Units.longDuration : 0easing.type: Easing.OutCubic}NumberAnimation {property: "opacity"from: 1.0to: 0.0duration: Kirigami.Units.longDurationeasing.type: Easing.OutCubic}}// NOTE: Not using animations because they tended to look too jumpy}