fix(tui): make the color palette theme-agnostic

The palette used absolute 256-color indices (`38;5;252`, `48;5;236`, …)
that terminals never remap to the active scheme: near-white body text
vanished on light backgrounds and fixed dark bubble fills put default
foreground text on dark blocks. Rebuild it from the standard 16-color
ANSI foregrounds plus SGR attributes, keep body text on the terminal
default foreground, replace filled background bubbles with foreground-only
left-gutter bars, and use reverse video for the active selection so every
grouping reads on any color scheme.
This commit is contained in:
Turtle
2026-07-17 16:50:53 +08:00
parent 12b7ac67ba
commit 87e25ef1fe
3 changed files with 66 additions and 31 deletions

View File

@@ -1122,7 +1122,7 @@ export interface TuiConfig {
}
```
Source: [`packages/ui/tui/src/index.ts:100`](../packages/ui/tui/src/index.ts)
Source: [`packages/ui/tui/src/index.ts:99`](../packages/ui/tui/src/index.ts)
## `@deepseek-ai/dsh-user-approval`