feat: hidden mode

This commit is contained in:
Kiana Sheibani 2025-12-12 14:39:47 -05:00
parent 589aaaf95f
commit 608854ba03
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
4 changed files with 38 additions and 4 deletions

View file

@ -9,6 +9,7 @@ Scope {
id: root
required property ShellScreen screen
property bool enabled: true
ExclusionZone {
anchors.left: true
@ -16,7 +17,7 @@ Scope {
ExclusionZone {
anchors.top: true
exclusiveZone: Config.bar.height
exclusiveZone: root.enabled ? Config.bar.height : undefined
}
ExclusionZone {
@ -30,7 +31,8 @@ Scope {
component ExclusionZone: CustomWindow {
screen: root.screen
name: "border-exclusion"
exclusiveZone: Config.border.thickness
exclusionMode: root.enabled ? ExclusionMode.Normal : ExclusionMode.Ignore
exclusiveZone: root.enabled ? Config.border.thickness : undefined
mask: Region {}
}
}