mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
fix(tui): visual issue with modal selected items in system theme
This commit is contained in:
parent
43b467dd12
commit
17c8b914df
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue