mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
fix(tui): use the terminal's light or dark mode over a cached palette (#62248)
This commit is contained in:
@@ -180,7 +180,7 @@ const themeContext = createSimpleContext({
|
||||
if (palette) setSystemTheme(generateSystem(palette, store.mode))
|
||||
}
|
||||
if (palette) {
|
||||
const mode = store.lock ?? terminalMode(palette) ?? store.mode
|
||||
const mode = store.lock ?? renderer.themeMode ?? terminalMode(palette) ?? store.mode
|
||||
if (store.mode !== mode) setStore("mode", mode)
|
||||
applyPalette()
|
||||
} else setSystemTheme(undefined)
|
||||
|
||||
Reference in New Issue
Block a user