test: preserve themed badge contrast on light terminals

This commit is contained in:
Teknium
2026-09-07 02:44:43 -07:00
parent 99fb18d00d
commit d538f4e929
3 changed files with 26 additions and 4 deletions

View File

@@ -512,6 +512,7 @@ def get_prompt_toolkit_style_overrides() -> Dict[str, str]:
palette: Dict[str, str] = {}
for name, key, fallback in _STYLE_PALETTE:
palette[name] = skin.get_color(key, palette[fallback[1:]] if fallback.startswith("@") else fallback)
# This badge paints both sides; foreground-only light remapping destroys its contrast.
palette["badge_bg"] = skin.colors.get(
"status_bar_strong", skin.colors.get("banner_title", "#FFD700"))
palette["badge_fg"] = skin.colors.get("status_bar_bg", "#1a1a2e")