import "root:/services" import "root:/config" import Quickshell import QtQuick Item { id: root required property ShellScreen screen visible: width > 0 implicitWidth: 0 implicitHeight: content.height + BorderConfig.rounding * 2 states: State { name: "visible" when: Drawers.visibilities[root.screen].osd PropertyChanges { root.implicitWidth: content.width } } transitions: [ Transition { from: "" to: "visible" NumberAnimation { target: root property: "implicitWidth" duration: Appearance.anim.durations.large easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.emphasizedDecel } }, Transition { from: "visible" to: "" NumberAnimation { target: root property: "implicitWidth" duration: Appearance.anim.durations.normal easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.emphasizedAccel } } ] Content { id: content monitor: Brightness.getMonitorForScreen(root.screen) } }