From 6f488c02cd79219eb33c16c72fa8f90a0dd2315e Mon Sep 17 00:00:00 2001 From: VERSE Date: Tue, 28 Jul 2026 19:01:44 +0700 Subject: [PATCH] fix(ui): set hex color for ghost text instead of hardcoded ANSI bright-black (#49) fix #48 Now ghost text use `#4B4A4C` color instead of hard-coded ANSI color --- integration/overlay.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integration/overlay.go b/integration/overlay.go index 95b334a..a53d762 100644 --- a/integration/overlay.go +++ b/integration/overlay.go @@ -138,6 +138,7 @@ type Theme struct { DescSel lipgloss.Color SelBg lipgloss.Color ScrollInfo lipgloss.Color + GhostText lipgloss.Color } var currentTheme = Theme{ @@ -151,6 +152,7 @@ var currentTheme = Theme{ DescSel: lipgloss.Color("#edecee"), SelBg: lipgloss.Color("#3d375e"), ScrollInfo: lipgloss.Color("#a277ff"), + GhostText: lipgloss.Color("#4B4A4C"), } func SetTheme(t Theme) { @@ -485,9 +487,8 @@ func (o *Overlay) RenderGhostText(buffer string, userNavigated bool, cursorAtEnd s.WriteString("\0337") if ghostText != "" { - s.WriteString("\033[90m") - s.WriteString(ghostText) - s.WriteString("\033[0m") + styled := lipgloss.NewStyle().Foreground(currentTheme.GhostText).Render(ghostText) + s.WriteString(styled) } if padLen > 0 { s.WriteString(strings.Repeat(" ", padLen))