Skip to content

Cherry-pick a3dc4b5: improve TUI color contrast for light terminals#1325

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/a3dc4b5-tui-color-contrast
Mar 14, 2026
Merged

Cherry-pick a3dc4b5: improve TUI color contrast for light terminals#1325
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/a3dc4b5-tui-color-contrast

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Upstream Cherry-Pick

Commit: a3dc4b5a5
Author: vincentkoc (Vincent Koc), ademczuk
Tier: AUTO-PICK (alive=6)
Issue: #910
Depends on: #1324

Detect light terminal backgrounds via COLORFGBG and apply a WCAG AA-compliant light palette. Adds REMOTECLAW_THEME=light|dark env var override for terminals without auto-detection.

Conflict Resolution

  • CHANGELOG.md (DU): deleted in fork, removed
  • Rebranded OPENCLAW_THEMEREMOTECLAW_THEME across all files
  • Rebranded openclaw tuiremoteclaw tui in docs

🤖 Generated with Claude Code

…claw#40345)

* fix(tui): improve colour contrast for light-background terminals (openclaw#38636)

Detect light terminal backgrounds via COLORFGBG and apply a WCAG
AA-compliant light palette. Adds OPENCLAW_THEME=light|dark env var
override for terminals without auto-detection.

Uses proper sRGB linearisation and WCAG 2.1 contrast ratios to pick
whichever text palette (dark or light) has higher contrast against
the detected background colour.

Co-authored-by: ademczuk <[email protected]>

* Update CHANGELOG.md

---------

Co-authored-by: ademczuk <[email protected]>
Co-authored-by: ademczuk <[email protected]>
(cherry picked from commit a3dc4b5)
@alexey-pelykh alexey-pelykh merged commit 7eab789 into main Mar 14, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/a3dc4b5-tui-color-contrast branch March 14, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants