Change overlay display to allow bubblezone to work

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-23 17:42:33 +02:00
parent b22ce7cbf7
commit 2fd1861339
4 changed files with 29 additions and 15 deletions
+1 -5
View File
@@ -42,11 +42,7 @@ func (m Model) renderOne(mo Modal, background string, w, h int) string {
bw, bh := lipgloss.Width(box), lipgloss.Height(box)
x, y := max((w-bw)/2, 0), max((h-bh)/2, 0)
compositor := lipgloss.NewCompositor(
lipgloss.NewLayer(dim(background, s.DimColor)),
lipgloss.NewLayer(box).X(x).Y(y).Z(1),
)
return compositor.Render()
return style.Overlay(dim(background, s.DimColor), box, x, y)
}
func dim(s string, c color.Color) string {