38 lines
776 B
QML
38 lines
776 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import qs.config
|
|
import qs.custom
|
|
import Quickshell
|
|
import QtQuick
|
|
|
|
Scope {
|
|
id: root
|
|
|
|
required property ShellScreen screen
|
|
property bool enabled: true
|
|
|
|
ExclusionZone {
|
|
anchors.left: true
|
|
}
|
|
|
|
ExclusionZone {
|
|
anchors.top: true
|
|
exclusiveZone: root.enabled ? Config.bar.height : undefined
|
|
}
|
|
|
|
ExclusionZone {
|
|
anchors.right: true
|
|
}
|
|
|
|
ExclusionZone {
|
|
anchors.bottom: true
|
|
}
|
|
|
|
component ExclusionZone: CustomWindow {
|
|
screen: root.screen
|
|
name: "border-exclusion"
|
|
exclusionMode: root.enabled ? ExclusionMode.Normal : ExclusionMode.Ignore
|
|
exclusiveZone: root.enabled ? Config.border.thickness : undefined
|
|
mask: Region {}
|
|
}
|
|
}
|