From d9cb6fcdff447032adc47125e535c61311ddc762 Mon Sep 17 00:00:00 2001 From: Adrian Dombeck Date: Wed, 27 Aug 2025 16:07:13 +0200 Subject: [PATCH] Improve Faint style Use the libgloss Faint style, which uses the ANSI escape sequence for "faint" (or "dim"). The previous AdaptiveColor was hardly visible on dark terminal backgrounds. --- style.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.go b/style.go index 4d43bfd2..b5e08040 100644 --- a/style.go +++ b/style.go @@ -40,7 +40,7 @@ const ( // Styles for syntax highlightin. var ( CommandStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("12")) - FaintStyle = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "242", Dark: "238"}) + FaintStyle = lipgloss.NewStyle().Faint(true) NoneStyle = lipgloss.NewStyle() KeywordStyle = lipgloss.NewStyle() URLStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("3"))