From fc87280dcfed7e0268f6b9c9dc840f83cc1c2a9c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 2 May 2025 13:57:16 +1000 Subject: refactor: separate launcher into multiple files --- modules/launcher/Wrapper.qml | 66 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 modules/launcher/Wrapper.qml (limited to 'modules/launcher/Wrapper.qml') diff --git a/modules/launcher/Wrapper.qml b/modules/launcher/Wrapper.qml new file mode 100644 index 0000000..17e7b3a --- /dev/null +++ b/modules/launcher/Wrapper.qml @@ -0,0 +1,66 @@ +import "root:/config" +import QtQuick + +Item { + id: root + + required property bool launcherVisible + + anchors.left: parent.left + anchors.right: parent.right + anchors.bottom: parent.bottom + + height: 0 + visible: false + + clip: true + + states: State { + name: "visible" + when: root.launcherVisible + + PropertyChanges { + root.height: content.height + root.visible: true + } + } + + transitions: [ + Transition { + from: "" + to: "visible" + + SequentialAnimation { + PropertyAction { + target: root + property: "visible" + } + NumberAnimation { + target: root + property: "height" + duration: Appearance.anim.durations.large + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.emphasizedDecel + } + } + }, + Transition { + from: "visible" + to: "" + + SequentialAnimation { + NumberAnimation { + target: root + property: "height" + duration: Appearance.anim.durations.extraLarge + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.emphasizedDecel + } + PropertyAction { + target: root + property: "visible" + } + } + } + ] +} -- cgit v1.2.3-freya