summaryrefslogtreecommitdiff
path: root/modules/drawers/Drawers.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/drawers/Drawers.qml')
-rw-r--r--modules/drawers/Drawers.qml49
1 files changed, 49 insertions, 0 deletions
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml
new file mode 100644
index 0000000..30fcae0
--- /dev/null
+++ b/modules/drawers/Drawers.qml
@@ -0,0 +1,49 @@
+import "root:/widgets"
+import "root:/config"
+import Quickshell
+
+Variants {
+ model: Quickshell.screens
+
+ Scope {
+ id: scope
+
+ required property ShellScreen modelData
+
+ Exclusions {
+ screen: scope.modelData
+ }
+
+ StyledWindow {
+ id: win
+
+ screen: scope.modelData
+ name: "drawers"
+ exclusionMode: ExclusionMode.Ignore
+
+ mask: Region {
+ x: BorderConfig.thickness
+ y: BorderConfig.thickness
+ width: scope.modelData.width - BorderConfig.thickness * 2
+ height: scope.modelData.height - BorderConfig.thickness * 2
+ intersection: Intersection.Xor
+ }
+
+ anchors.top: true
+ anchors.bottom: true
+ anchors.left: true
+ anchors.right: true
+
+ Border {
+ id: border
+
+ visible: false
+ screen: scope.modelData
+ }
+
+ LayerShadow {
+ source: border
+ }
+ }
+ }
+}