From d4b98dec7759072f9c1bfaaede3b284ca4589dd4 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 30 Apr 2026 21:49:44 +1000 Subject: [PATCH] fix: slight border showing when fullscreen --- modules/drawers/ContentWindow.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/drawers/ContentWindow.qml b/modules/drawers/ContentWindow.qml index 5fbacd41..d1b6ad8e 100644 --- a/modules/drawers/ContentWindow.qml +++ b/modules/drawers/ContentWindow.qml @@ -31,6 +31,8 @@ StyledWindow { } return monitor?.activeWorkspace?.toplevels.values.some(t => t.lastIpcObject.fullscreen > 1) ?? false; } + + property real sdfBorderOffset: hasFullscreen ? 2 : 0 // SDFs joins are not exact, so offset by 2px to ensure nothing shows property real borderThickness: hasFullscreen ? 0 : contentItem.Config.border.thickness readonly property real borderLayoutThickness: hasFullscreen ? 0 : contentItem.Config.border.thickness property real borderRounding: hasFullscreen ? 0 : contentItem.Config.border.rounding @@ -68,6 +70,10 @@ StyledWindow { anchors.left: true anchors.right: true + Behavior on sdfBorderOffset { + Anim {} + } + Behavior on borderThickness { Anim { type: Anim.DefaultSpatial @@ -149,10 +155,10 @@ StyledWindow { anchors.margins: -50 // Make border thicker to smooth out bulge from closed drawers group: blobGroup radius: root.borderRounding - borderLeft: bar.implicitWidth - anchors.margins - borderRight: root.borderThickness - anchors.margins - borderTop: root.borderThickness - anchors.margins - borderBottom: root.borderThickness - anchors.margins + borderLeft: bar.implicitWidth - anchors.margins - root.sdfBorderOffset + borderRight: root.borderThickness - anchors.margins - root.sdfBorderOffset + borderTop: root.borderThickness - anchors.margins - root.sdfBorderOffset + borderBottom: root.borderThickness - anchors.margins - root.sdfBorderOffset } PanelBg {