/** 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: trueimplicitWidth: implicitContentWidth + leftPadding + rightPaddingimplicitHeight: implicitContentHeight + topPadding + bottomPaddingclip: busycontentItem: currentItemAccessible.ignored: truepopEnter: enterTransitionpopExit: exitTransitionpushEnter: enterTransitionpushExit: exitTransitionreplaceEnter: enterTransitionreplaceExit: exitTransition// Using NumberAnimation instead of XAnimator because the latter wasn't always smooth enoughTransition {id: enterTransitionNumberAnimation {property: "x"from: (root.reverseTransitions ? -0.5 : 0.5) * (root.mirrored ? -1 : 1) * -root.widthto: 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: "x"from: 0to: (root.reverseTransitions ? -0.5 : 0.5) * (root.mirrored ? -1 : 1) * root.widthduration: root.movementTransitionsEnabled ? Kirigami.Units.longDuration : 0easing.type: Easing.OutCubic}NumberAnimation {property: "opacity"from: 1.0to: 0.0duration: Kirigami.Units.longDurationeasing.type: Easing.OutCubic}}}