nosignal-shell/modules/launcher/Wrapper.qml
2 * r + 2 * t 651378d496 launcher: add content
Also use surfaceContainer as background
2025-05-02 14:57:59 +10:00

66 lines
1.6 KiB
QML

import "root:/config"
import QtQuick
Item {
id: root
required property bool launcherVisible
property bool shouldBeVisible
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: 0
clip: true
states: State {
name: "visible"
when: root.launcherVisible
PropertyChanges {
root.height: content.height
root.shouldBeVisible: true
}
}
transitions: [
Transition {
from: ""
to: "visible"
SequentialAnimation {
PropertyAction {
target: root
property: "shouldBeVisible"
}
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: "shouldBeVisible"
}
}
}
]
}