mirror of
https://gitee.com/zhangsken/opencode.git
synced 2026-10-16 10:30:01 +08:00
fix(tui): defer named-theme palette detection (#48570)
This commit is contained in:
@@ -184,7 +184,11 @@ const themeContext = createSimpleContext({
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
void Promise.allSettled([resolveSystemTheme(store.mode), syncCustomThemes()]).finally(() => {
|
||||
const systemTheme = resolveSystemTheme(store.mode)
|
||||
void Promise.allSettled([
|
||||
store.active === "system" ? systemTheme : Promise.resolve(),
|
||||
syncCustomThemes(),
|
||||
]).finally(() => {
|
||||
valuesV2()
|
||||
setStore("ready", true)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user