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
|
|
@ -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 (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue