summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components/list
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-06-26 10:16:07 -0500
committerJay V <[email protected]>2025-06-26 17:21:53 -0400
commit2e26b58d160cc7cfc5c403cd63cbb30fad9fe8d0 (patch)
tree8adf56cd142dd6426bfa93aa8ed891d326f69231 /packages/tui/internal/components/list
parent31b56e5a05313fea9232bea4c9e90db00a2d23e7 (diff)
downloadopencode-2e26b58d160cc7cfc5c403cd63cbb30fad9fe8d0.tar.gz
opencode-2e26b58d160cc7cfc5c403cd63cbb30fad9fe8d0.zip
feat: default system theme (#419)
Co-authored-by: adamdottv <[email protected]>
Diffstat (limited to 'packages/tui/internal/components/list')
-rw-r--r--packages/tui/internal/components/list/list.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/tui/internal/components/list/list.go b/packages/tui/internal/components/list/list.go
index d5cc4b4f9..fe03f5c28 100644
--- a/packages/tui/internal/components/list/list.go
+++ b/packages/tui/internal/components/list/list.go
@@ -5,7 +5,6 @@ import (
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
- "github.com/charmbracelet/lipgloss/v2"
"github.com/muesli/reflow/truncate"
"github.com/sst/opencode/internal/styles"
"github.com/sst/opencode/internal/theme"
@@ -174,11 +173,11 @@ type StringItem string
func (s StringItem) Render(selected bool, width int) string {
t := theme.CurrentTheme()
- baseStyle := styles.BaseStyle()
+ baseStyle := styles.NewStyle()
truncatedStr := truncate.StringWithTail(string(s), uint(width-1), "...")
- var itemStyle lipgloss.Style
+ var itemStyle styles.Style
if selected {
itemStyle = baseStyle.
Background(t.Primary()).
@@ -187,6 +186,7 @@ func (s StringItem) Render(selected bool, width int) string {
PaddingLeft(1)
} else {
itemStyle = baseStyle.
+ Foreground(t.TextMuted()).
PaddingLeft(1)
}