summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-06-26 12:33:06 -0500
committeradamdottv <[email protected]>2025-06-26 12:33:06 -0500
commit17c8b914df57541df297e137e419313b9d9a7df6 (patch)
treec6051c11e8c9269ffaa13c3e4c44d5a3a4a848d3
parent43b467dd1225a849c0dfb19b41a7b5e7e10b61d7 (diff)
downloadopencode-17c8b914df57541df297e137e419313b9d9a7df6.tar.gz
opencode-17c8b914df57541df297e137e419313b9d9a7df6.zip
fix(tui): visual issue with modal selected items in system theme
-rw-r--r--packages/tui/internal/components/dialog/session.go4
-rw-r--r--packages/tui/internal/components/list/list.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/tui/internal/components/dialog/session.go b/packages/tui/internal/components/dialog/session.go
index 6ee8d1cce..f38f37bf5 100644
--- a/packages/tui/internal/components/dialog/session.go
+++ b/packages/tui/internal/components/dialog/session.go
@@ -49,14 +49,14 @@ func (s sessionItem) Render(selected bool, width int) string {
// Red background for delete confirmation
itemStyle = baseStyle.
Background(t.Error()).
- Foreground(t.Background()).
+ Foreground(t.BackgroundElement()).
Width(width).
PaddingLeft(1)
} else {
// Normal selection
itemStyle = baseStyle.
Background(t.Primary()).
- Foreground(t.Background()).
+ Foreground(t.BackgroundElement()).
Width(width).
PaddingLeft(1)
}
diff --git a/packages/tui/internal/components/list/list.go b/packages/tui/internal/components/list/list.go
index fe03f5c28..a7ea3458d 100644
--- a/packages/tui/internal/components/list/list.go
+++ b/packages/tui/internal/components/list/list.go
@@ -181,7 +181,7 @@ func (s StringItem) Render(selected bool, width int) string {
if selected {
itemStyle = baseStyle.
Background(t.Primary()).
- Foreground(t.Background()).
+ Foreground(t.BackgroundElement()).
Width(width).
PaddingLeft(1)
} else {