From 35fd928f9f268cce1bd43aef32d2cf6a5cb5a066 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 2 Jul 2025 14:32:57 -0400 Subject: [PATCH] chore: match initialchar colors in label position to label colors --- internal/tui/components/anim/anim.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/tui/components/anim/anim.go b/internal/tui/components/anim/anim.go index 712fe1555b4b0d5a891f8412acbeede5e68c1e40..73a34111ec285a6b2c6c82ff6ea2af3fe019646a 100644 --- a/internal/tui/components/anim/anim.go +++ b/internal/tui/components/anim/anim.go @@ -109,8 +109,14 @@ func New(numChars int, label string, t *styles.Theme) (a Anim) { // Pre-render initial characters. a.initialChars = make([]string, a.width) for i := range a.initialChars { + var c color.Color + if i <= a.cyclingCharWidth { + c = ramp[i] + } else { + c = t.FgBase + } a.initialChars[i] = lipgloss.NewStyle(). - Foreground(ramp[i]). + Foreground(c). Render(string(initialChar)) }