summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components/diff/diff.go
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-06-20 11:52:26 -0500
committeradamdottv <[email protected]>2025-06-20 13:00:31 -0500
commit8b73c52f00661a516cd89d9bb45b036dcc93c0f0 (patch)
tree5c14ad5894e608801bc32505c4957dd2e50d6029 /packages/tui/internal/components/diff/diff.go
parent5603098d174ee17d08a19908ee40a91cea9c9c05 (diff)
downloadopencode-8b73c52f00661a516cd89d9bb45b036dcc93c0f0.tar.gz
opencode-8b73c52f00661a516cd89d9bb45b036dcc93c0f0.zip
chore(tui): rename theme colors
Diffstat (limited to 'packages/tui/internal/components/diff/diff.go')
-rw-r--r--packages/tui/internal/components/diff/diff.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/tui/internal/components/diff/diff.go b/packages/tui/internal/components/diff/diff.go
index 2f655554e..13f0f562f 100644
--- a/packages/tui/internal/components/diff/diff.go
+++ b/packages/tui/internal/components/diff/diff.go
@@ -441,10 +441,10 @@ func SyntaxHighlight(w io.Writer, source, fileName, formatter string, bg color.C
<entry type="TextWhitespace" style="%s"/>
</style>
`,
- getColor(t.BackgroundSubtle()), // Background
- getColor(t.Text()), // Text
- getColor(t.Text()), // Other
- getColor(t.Error()), // Error
+ getColor(t.BackgroundPanel()), // Background
+ getColor(t.Text()), // Text
+ getColor(t.Text()), // Other
+ getColor(t.Error()), // Error
getColor(t.SyntaxKeyword()), // Keyword
getColor(t.SyntaxKeyword()), // KeywordConstant
@@ -614,7 +614,7 @@ func applyHighlighting(content string, segments []Segment, segmentType LineType,
// Get the appropriate color based on terminal background
bgColor := lipgloss.Color(getColor(highlightBg))
- fgColor := lipgloss.Color(getColor(theme.CurrentTheme().BackgroundSubtle()))
+ fgColor := lipgloss.Color(getColor(theme.CurrentTheme().BackgroundPanel()))
for i := 0; i < len(content); {
// Check if we're at an ANSI sequence