diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 16:30:53 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 16:30:53 +1000 |
| commit | ad7c6ea98e4588172398669bb8b7939999c7f121 (patch) | |
| tree | 29cf2fb3e7ccd3884b83f97b7f457be1311ebed0 /modules/drawers/Drawers.qml | |
| parent | notifs: better sliding (diff) | |
| download | caelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.tar.gz caelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.tar.bz2 caelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.zip | |
refactor: move to single window
Diffstat (limited to 'modules/drawers/Drawers.qml')
| -rw-r--r-- | modules/drawers/Drawers.qml | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml index 7d1d3e3..d8f242b 100644 --- a/modules/drawers/Drawers.qml +++ b/modules/drawers/Drawers.qml @@ -1,6 +1,10 @@ +pragma ComponentBehavior: Bound + import "root:/widgets" +import "root:/services" import "root:/config" import Quickshell +import QtQuick Variants { model: Quickshell.screens @@ -27,6 +31,13 @@ Variants { width: scope.modelData.width - BorderConfig.thickness * 2 height: scope.modelData.height - BorderConfig.thickness * 2 intersection: Intersection.Xor + + regions: panels.children.map(c => regionComp.createObject(this, { + x: c.x, + y: c.y, + width: c.width, + height: c.height + })) } anchors.top: true @@ -34,14 +45,35 @@ Variants { anchors.left: true anchors.right: true - Border { - id: border + Component { + id: regionComp + + Region { + intersection: Intersection.Subtract + } + } + + Item { + id: background + anchors.fill: parent visible: false + + Border {} + + Backgrounds { + panels: panels + } } LayerShadow { - source: border + source: background + } + + Panels { + id: panels + + screen: scope.modelData } Interactions { |