upgrade opentui to 0.2.2 (#25420)

This commit is contained in:
Sebastian
2026-05-02 17:01:53 +02:00
committed by GitHub
parent 78b3000031
commit 6a76346734
5 changed files with 36 additions and 38 deletions

View File

@@ -416,12 +416,16 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
const values = createMemo(() => {
const active = store.themes[store.active]
if (active) return resolveTheme(active, store.mode)
if (active) {
return resolveTheme(active, store.mode)
}
const saved = kv.get("theme")
if (typeof saved === "string") {
const theme = store.themes[saved]
if (theme) return resolveTheme(theme, store.mode)
if (theme) {
return resolveTheme(theme, store.mode)
}
}
return resolveTheme(store.themes.opencode, store.mode)