on main help sign in
feat(tui): use lipgloss on escape sequences
commit82eca73d65beb9b7f011bc95939efcaded7c8591 authorAyman Bagabas <ayman.bagabas@gmail.com> dateMon 14 Jul 2025, 16:12 (1 year ago) parentee1cac6
1 file changed+2−2
internal/tui/components/chat/messages/renderer.go+2−2
internal/tui/components/chat/messages/renderer.go+2−2
@@ -792,7 +792,7 @@ func escapeLine(t *styles.Theme, text string) string {
792792 n int
793793 w int
794794 )
795− faint := ansi.NewStyle().Faint().ForegroundColor(t.FgMuted)
795+ faint := t.S().Muted.Faint(true)
796796 for len(text) > 0 {
797797 seq, w, n, state = ansi.DecodeSequence(text, state, nil)
798798 if w > 0 {
@@ -801,7 +801,7 @@ func escapeLine(t *styles.Theme, text string) string {
801801 quote := strconv.Quote(seq)
802802 quote = strings.TrimPrefix(quote, "\"")
803803 quote = strings.TrimSuffix(quote, "\"")
804− sb.WriteString(faint.Styled(quote))
804+ sb.WriteString(faint.Render(quote))
805805 }
806806 text = text[n:]
807807 }