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
@@ -43,11 +43,7 @@ func (m Model) renderOne(d Drawer, background string, w, h int) string {
x = max(w-bw, 0)
}
compositor := lipgloss.NewCompositor(
lipgloss.NewLayer(dim(background, s.DimColor)),
lipgloss.NewLayer(box).X(x).Y(0).Z(1),
)
return compositor.Render()
return style.Overlay(dim(background, s.DimColor), box, x, 0)
}
func dim(s string, c color.Color) string {