fix(tui): raise neutral permission backgrounds (#37513)

This commit is contained in:
James Long 2026-07-17 11:35:02 -04:00 committed by GitHub
commit bd79e24842
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 41 additions and 42 deletions

View file

@ -297,18 +297,19 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
themePerformance.set("Resolve final theme", duration(performance.now() - resolveStarted))
return result
})
const themeV2 = createComponentTheme(valuesV2)
const mode = () => store.mode
const themeV2 = createComponentTheme(valuesV2, mode)
const contextsV2 = {
elevated: createComponentTheme(() => {
const theme = valuesV2().contexts["@context:elevated"]
if (!theme) throw new Error("Theme context is not defined: elevated")
return theme
}),
}, mode),
overlay: createComponentTheme(() => {
const theme = valuesV2().contexts["@context:overlay"]
if (!theme) throw new Error("Theme context is not defined: overlay")
return theme
}),
}, mode),
}
createEffect(() => renderer.setBackgroundColor(values().background))