diff options
| author | adamelmore <[email protected]> | 2025-07-21 08:56:45 -0500 |
|---|---|---|
| committer | adamelmore <[email protected]> | 2025-07-21 10:02:57 -0500 |
| commit | bb17d14665de1c240249ce33dd18fb9e0ae463b9 (patch) | |
| tree | 20af47d9c4681cc4db7e066e8e28618d904209aa /packages/tui/internal | |
| parent | cd0b2ae0323aa36d3e15b94d8ec9ca0bb81b5597 (diff) | |
| download | opencode-bb17d14665de1c240249ce33dd18fb9e0ae463b9.tar.gz opencode-bb17d14665de1c240249ce33dd18fb9e0ae463b9.zip | |
feat(tui): theme override with OPENCODE_THEME
Diffstat (limited to 'packages/tui/internal')
| -rw-r--r-- | packages/tui/internal/app/app.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/tui/internal/app/app.go b/packages/tui/internal/app/app.go index a481cd101..0c90257b3 100644 --- a/packages/tui/internal/app/app.go +++ b/packages/tui/internal/app/app.go @@ -3,6 +3,7 @@ package app import ( "context" "fmt" + "os" "path/filepath" "sort" "strings" @@ -103,6 +104,10 @@ func New( if configInfo.Theme != "" { appState.Theme = configInfo.Theme } + themeEnv := os.Getenv("OPENCODE_THEME") + if themeEnv != "" { + appState.Theme = themeEnv + } var modeIndex int var mode *opencode.Mode |
