feat(tui): migrate core surfaces to V2 themes (#37145)

This commit is contained in:
James Long 2026-07-16 10:22:29 -04:00 committed by GitHub
commit 5fcef6773c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 1389 additions and 815 deletions

View file

@ -14,7 +14,7 @@ type ToastInput = Omit<ToastOptions, "duration"> & { duration?: number }
export function Toast() {
const toast = useToast()
const { theme } = useTheme()
const { theme, themeV2 } = useTheme()
const dimensions = useTerminalDimensions()
return (
@ -37,11 +37,11 @@ export function Toast() {
customBorderChars={SplitBorder.customBorderChars}
>
<Show when={current().title}>
<text attributes={TextAttributes.BOLD} marginBottom={1} fg={theme.text}>
<text attributes={TextAttributes.BOLD} marginBottom={1} fg={themeV2.text()}>
{current().title}
</text>
</Show>
<text fg={theme.text} wrapMode="word" width="100%">
<text fg={themeV2.text()} wrapMode="word" width="100%">
{current().message}
</text>
</box>