pragma ComponentBehavior: Bound import Quickshell import QtQuick import qs.Components import ZShell.Config Item { id: root readonly property real nonAnimHeight: state === "visible" ? (content.item?.nonAnimHeight ?? 0) : 0 required property real offsetScale readonly property bool shouldBeActive: root.screenState.dashboard && Config.dashboard.enabled required property ScreenState screenState anchors.top: parent.top anchors.topMargin: (-implicitHeight - 5) * offsetScale implicitHeight: content.implicitHeight implicitWidth: content.implicitWidth || 854 opacity: 1 - offsetScale visible: offsetScale < 1 Loader { id: content active: root.shouldBeActive || root.visible anchors.bottom: parent.bottom anchors.horizontalCenter: parent.horizontalCenter sourceComponent: Content { screenState: root.screenState } } }