Skip to content

Commit f7a056c

Browse files
wesmclaude
andcommitted
Replace Reverse(true) styles with explicit fg/bg colors
Freeze doesn't support the Reverse SGR attribute when rendering ANSI to SVG. Use explicit AdaptiveColor foreground/background pairs for headerStyle and highlightStyle instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6853e55 commit f7a056c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/tui/view.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ var (
2727

2828
headerStyle = lipgloss.NewStyle().
2929
Bold(true).
30-
Reverse(true).
30+
Foreground(lipgloss.AdaptiveColor{Light: "#ffffff", Dark: "#000000"}).
31+
Background(lipgloss.AdaptiveColor{Light: "#333333", Dark: "#dddddd"}).
3132
Padding(0, 1)
3233

3334
statsStyle = lipgloss.NewStyle().
@@ -96,7 +97,8 @@ var (
9697
Background(bgBase)
9798

9899
highlightStyle = lipgloss.NewStyle().
99-
Reverse(true).
100+
Foreground(lipgloss.AdaptiveColor{Light: "#000000", Dark: "#000000"}).
101+
Background(lipgloss.AdaptiveColor{Light: "#e8d44d", Dark: "#e8d44d"}).
100102
Bold(true)
101103
)
102104

0 commit comments

Comments
 (0)