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

@ -188,7 +188,7 @@ export function Prompt(props: PromptProps) {
const renderer = useRenderer()
const exit = useExit()
const dimensions = useTerminalDimensions()
const { themeV2, syntax, mode } = useTheme()
const { themeV2, syntax } = useTheme()
const animationsEnabled = createMemo(() => config.animations ?? true)
const list = createMemo(() => props.placeholders?.normal ?? [])
const shell = createMemo(() => props.placeholders?.shell ?? [])
@ -1379,11 +1379,7 @@ export function Prompt(props: PromptProps) {
})
const maxHeight = createMemo(() => Math.max(6, Math.floor(dimensions().height / 3)))
const promptBg = createMemo(() =>
mode() === "light"
? themeV2.increase(themeV2.background.surface.offset(), 1)
: themeV2.decrease(themeV2.background.surface.offset(), 1),
)
const promptBg = createMemo(() => themeV2.raise(themeV2.background.surface.offset()))
return (
<>