This commit is contained in:
Zacharias-Brohn
2026-03-09 12:47:09 +01:00
parent 720bc2808e
commit 1ee345f946
11 changed files with 762 additions and 115 deletions
+35 -11
View File
@@ -32,19 +32,9 @@ Variants {
WlrLayershell.namespace: "ZShell-Bar"
color: "transparent"
contentItem.focus: true
mask: visibilities.isDrawing ? null : region
screen: scope.modelData
mask: Region {
id: region
height: bar.screen.height - backgroundRect.implicitHeight
intersection: Intersection.Xor
regions: popoutRegions.instances
width: bar.width
x: 0
y: Config.barConfig.autoHide && !visibilities.bar ? 4 : backgroundRect.height
}
contentItem.Keys.onEscapePressed: {
if (Config.barConfig.autoHide)
visibilities.bar = false;
@@ -55,6 +45,17 @@ Variants {
visibilities.resources = false;
}
Region {
id: region
height: bar.screen.height - backgroundRect.implicitHeight
intersection: Intersection.Xor
regions: popoutRegions.instances
width: bar.width
x: 0
y: Config.barConfig.autoHide && !visibilities.bar ? 4 : backgroundRect.height
}
PanelWindow {
id: exclusionZone
@@ -117,6 +118,7 @@ Variants {
property bool bar
property bool dashboard
property bool isDrawing
property bool launcher
property bool notif: NotifServer.popups.length > 0
property bool osd
@@ -157,20 +159,42 @@ Variants {
}
}
Drawing {
id: drawing
anchors.fill: parent
z: 2
}
DrawingInput {
id: input
bar: backgroundRect
drawing: drawing
panels: panels
popout: panels.drawing
visibilities: visibilities
z: 2
}
Interactions {
id: mouseArea
anchors.fill: parent
bar: barLoader
drawing: drawing
input: input
panels: panels
popouts: panels.popouts
screen: scope.modelData
visibilities: visibilities
z: 1
Panels {
id: panels
bar: backgroundRect
drawingItem: drawing
screen: scope.modelData
visibilities: visibilities
}