mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
hefty: bar: fix widget backgrounds flash when changing size
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user