summaryrefslogtreecommitdiff
path: root/modules/drawers/Drawers.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-07 14:47:24 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-07 14:47:24 +1000
commite3dcdbb67cba35d90fbf5d437466d11776fe8412 (patch)
tree192e3787eb1ab45463cb27b35c595466912da4ed /modules/drawers/Drawers.qml
parentdashboard: make own swipeview impl (diff)
downloadcaelestia-shell-e3dcdbb67cba35d90fbf5d437466d11776fe8412.tar.gz
caelestia-shell-e3dcdbb67cba35d90fbf5d437466d11776fe8412.tar.bz2
caelestia-shell-e3dcdbb67cba35d90fbf5d437466d11776fe8412.zip
internal: move bar to drawer window
Fixes a few bugs, also removes need for hyprland order layerrule
Diffstat (limited to 'modules/drawers/Drawers.qml')
-rw-r--r--modules/drawers/Drawers.qml23
1 files changed, 17 insertions, 6 deletions
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml
index 3aabc48..c897f4a 100644
--- a/modules/drawers/Drawers.qml
+++ b/modules/drawers/Drawers.qml
@@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import "root:/widgets"
import "root:/services"
import "root:/config"
+import "root:/modules/bar"
import Quickshell
import Quickshell.Wayland
import Quickshell.Hyprland
@@ -18,6 +19,7 @@ Variants {
Exclusions {
screen: scope.modelData
+ bar: bar
}
StyledWindow {
@@ -29,9 +31,9 @@ Variants {
WlrLayershell.keyboardFocus: visibilities.launcher || visibilities.session ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
mask: Region {
- x: BorderConfig.thickness
+ x: bar.implicitWidth
y: BorderConfig.thickness
- width: win.width - BorderConfig.thickness * 2
+ width: win.width - bar.implicitWidth - BorderConfig.thickness
height: win.height - BorderConfig.thickness * 2
intersection: Intersection.Xor
@@ -43,8 +45,6 @@ Variants {
anchors.left: true
anchors.right: true
- margins.left: Visibilities.bars[screen]?.implicitWidth ?? 0
-
Variants {
id: regions
@@ -53,7 +53,7 @@ Variants {
Region {
required property Item modelData
- x: modelData.x + BorderConfig.thickness
+ x: modelData.x + bar.implicitWidth
y: modelData.y + BorderConfig.thickness
width: modelData.width
height: modelData.height
@@ -90,10 +90,13 @@ Variants {
anchors.fill: parent
visible: false
- Border {}
+ Border {
+ bar: bar
+ }
Backgrounds {
panels: panels
+ bar: bar
}
}
@@ -116,14 +119,22 @@ Variants {
screen: scope.modelData
visibilities: visibilities
panels: panels
+ bar: bar
Panels {
id: panels
screen: scope.modelData
visibilities: visibilities
+ bar: bar
}
}
+
+ Bar {
+ id: bar
+
+ screen: scope.modelData
+ }
}
}
}