From ace263cd45cce8c1458ed556c5fa486f6839bf96 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 10 Mar 2026 08:13:21 +0100 Subject: [PATCH] hefty: bar: fix widget backgrounds flash when changing size --- .../modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml index c540d9163..52ef16406 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/HBarWidgetShapeBackground.qml @@ -109,7 +109,10 @@ Shapes.ShapeCanvas { if (!vertical) return bgShape.showPopup ? (containerShape.height + popupShape.height + bgShape.spacing) : containerShape.height; else return bgShape.showPopup ? Math.max(backgroundHeight, popupHeight) : backgroundHeight; } - color: bgShape.showPopup || progress < 1 ? C.Appearance.colors.colLayer3Base : C.Appearance.colors.colLayer1 + property bool popupHiding: false + onShowPopupChanged: popupHiding = true + onProgressChanged: if (progress == 1) popupHiding = false + color: showPopup || popupHiding ? C.Appearance.colors.colLayer3Base : C.Appearance.colors.colLayer1 xOffset: { if (!vertical) return showPopup ? Math.max(-popupXOffset, 0) : 0; else return bgShape.atBottom ? (width - containerShape.width) : 0;