fix(tui): raise neutral permission backgrounds (#37513)
This commit is contained in:
parent
d67e035c18
commit
bd79e24842
7 changed files with 41 additions and 42 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue