From 6ad46cf2c2480ac50ee5e814453e9b38bd085784 Mon Sep 17 00:00:00 2001 From: bbedward Date: Tue, 4 Aug 2026 22:15:15 -0400 Subject: [PATCH] bar: fix shadow from tinting goth corners fixes #2975 port 1.5 --- quickshell/Modules/DankBar/BarCanvas.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/quickshell/Modules/DankBar/BarCanvas.qml b/quickshell/Modules/DankBar/BarCanvas.qml index cee5a8d4c..9f0309cef 100644 --- a/quickshell/Modules/DankBar/BarCanvas.qml +++ b/quickshell/Modules/DankBar/BarCanvas.qml @@ -201,7 +201,16 @@ Item { direction: root.effectiveShadowDirection fallbackOffset: 4 targetRadius: root.rt - targetColor: barWindow._bgColor + // wing-side body corners are square where the gothic fillets attach; + // rounding the shadow there leaves a shadow-filled notch under the + // translucent bar fill (#2975) + topLeftRadius: root.gothEnabled && (root.isBottom || root.isRight) ? 0 : root.rt + topRightRadius: root.gothEnabled && (root.isBottom || root.isLeft) ? 0 : root.rt + bottomLeftRadius: root.gothEnabled && (root.isTop || root.isRight) ? 0 : root.rt + bottomRightRadius: root.gothEnabled && (root.isTop || root.isLeft) ? 0 : root.rt + // barShape below is the sole painter of the bar; a fill here doubles + // the alpha of translucent bars while the wings stay single-painted + targetColor: "transparent" shadowBlurPx: root.shadowBlurPx shadowOffsetX: root.shadowOffsetX