fix(tui): use the terminal's light or dark mode over a cached palette (#62248)

This commit is contained in:
DS
2026-11-06 17:50:33 -05:00
committed by GitHub
Unverified
parent 33f94fce96
commit 0ce87485e8
+1 -1
View File
@@ -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)