mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-10-05 19:08:25 +02:00
Change overlay display to allow bubblezone to work
Signed-off-by: Hadi <[email protected]>
This commit is contained in:
+1
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user