From 7d13baadc84d7377a352c6d58ed9deeea2c918be Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 26 Jun 2025 10:16:07 -0500 Subject: feat: default system theme (#419) Co-authored-by: adamdottv <2363879+adamdottv@users.noreply.github.com> --- packages/tui/internal/app/app.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/tui/internal/app') diff --git a/packages/tui/internal/app/app.go b/packages/tui/internal/app/app.go index 4c156b68d..e8775921a 100644 --- a/packages/tui/internal/app/app.go +++ b/packages/tui/internal/app/app.go @@ -14,6 +14,7 @@ import ( "github.com/sst/opencode/internal/commands" "github.com/sst/opencode/internal/components/toast" "github.com/sst/opencode/internal/config" + "github.com/sst/opencode/internal/styles" "github.com/sst/opencode/internal/theme" "github.com/sst/opencode/internal/util" "github.com/sst/opencode/pkg/client" @@ -103,6 +104,12 @@ func New( } if appState.Theme != "" { + if appState.Theme == "system" && styles.Terminal != nil { + theme.UpdateSystemTheme( + styles.Terminal.Background, + styles.Terminal.BackgroundIsDark, + ) + } theme.SetTheme(appState.Theme) } -- cgit v1.2.3