feat(bar): add a toggle for 1px exclusion zone

This commit is contained in:
SpeakingPNG
2026-03-04 15:04:32 +01:00
parent ba5f933c58
commit 4c2dba2e45
5 changed files with 23 additions and 2 deletions
+3 -2
View File
@@ -23,8 +23,9 @@ PanelWindow {
readonly property bool barFloating: Settings.data.bar.floating || false
readonly property real barMarginH: (barFloating && edge === Settings.getBarPositionForScreen(screen?.name)) ? Math.ceil(Settings.data.bar.marginHorizontal) : 0
readonly property real barMarginV: (barFloating && edge === Settings.getBarPositionForScreen(screen?.name)) ? Math.ceil(Settings.data.bar.marginVertical) : 0
// Reduce exclusion zone by 1 physical pixel so app windows blend flush against the bar edge
readonly property real bleedInset: 1.0 / (CompositorService.getDisplayScale(screen?.name) || 1.0)
// Allow users to adjust the exclusion zone if they need window borders to bleed under the bar
readonly property real bleedOffset: Settings.data.bar.exclusionZoneOffset ? 1.0 : 0.0
readonly property real bleedInset: bleedOffset / (CompositorService.getDisplayScale(screen?.name) || 1.0)
// Invisible - just reserves space
color: "transparent"