move bar to root window
This commit is contained in:
parent
8c59137716
commit
7022c3a9ae
3 changed files with 83 additions and 50 deletions
|
|
@ -4,8 +4,9 @@ import "launcher"
|
|||
import "pomodoro"
|
||||
import "powermenu"
|
||||
import "storybook"
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
|
|
@ -15,7 +16,65 @@ Variants {
|
|||
|
||||
required property ShellScreen modelData
|
||||
|
||||
Bar {}
|
||||
PanelWindow {
|
||||
id: exclusionZone
|
||||
|
||||
anchors.top: true
|
||||
anchors.left: true
|
||||
anchors.right: true
|
||||
|
||||
implicitWidth: bar.width
|
||||
implicitHeight: bar.height + bar.anchors.margins
|
||||
|
||||
color: "transparent"
|
||||
}
|
||||
|
||||
PanelWindow {
|
||||
id: topWindow
|
||||
|
||||
anchors.top: true
|
||||
anchors.left: true
|
||||
anchors.right: true
|
||||
anchors.bottom: true
|
||||
|
||||
color: 'transparent'
|
||||
|
||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
WlrLayershell.layer: WlrLayer.Top
|
||||
|
||||
mask: Region {
|
||||
width: topWindow.width
|
||||
height: topWindow.height
|
||||
intersection: Intersection.Xor
|
||||
regions: regions.instances
|
||||
}
|
||||
|
||||
Variants {
|
||||
id: regions
|
||||
|
||||
model: panels.children
|
||||
|
||||
Region {
|
||||
required property Item modelData
|
||||
|
||||
x: modelData.x
|
||||
y: modelData.y
|
||||
width: modelData.width
|
||||
height: modelData.height
|
||||
intersection: Intersection.Subtract
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
id: panels
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
Bar {
|
||||
id: bar
|
||||
}
|
||||
}
|
||||
}
|
||||
Launcher {}
|
||||
Pomodoro {}
|
||||
PowerMenu {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue