Skip to content

fix(tui): brighten selection highlight for readability#175

Merged
0xKT merged 1 commit into
mainfrom
fix/selection_bg_readability
Jul 22, 2026
Merged

fix(tui): brighten selection highlight for readability#175
0xKT merged 1 commit into
mainfrom
fix/selection_bg_readability

Conversation

@xfng-sd

@xfng-sd xfng-sd commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Copy-selected text was hard to read: the selection background sat too close
to the base background across the dark tiers (and used blackBright on
light-16), so the highlight barely stood out. This raises selectionBg
contrast per color tier while keeping the foreground preserved (the renderer
still swaps only the background on selection):

  • dark truecolor: #332d0a -> #8a6d00
  • dark 256-color: ansi256(235) -> ansi256(58)
  • dark 16-color: blackBright -> yellow
  • light 16-color: blackBright -> magentaBright

Light truecolor and light 256 values are unchanged (already legible).

Type

  • Fix
  • Feature
  • Docs
  • CI / tooling
  • Refactor
  • Other

Verification

  • cd ui-tui && npx tsc --noEmit -p tsconfig.json -> passes

  • Relevant tests pass locally

  • Relevant lint / type checks pass locally

  • User-facing docs or screenshots are updated when needed

Risk

  • Security impact considered
  • Backward compatibility considered
  • Rollback path is clear for risky changes

Related Issues

N/A

The selection background sat too close to the base background across the
dark tiers (and blackBright on light-16), so copy-selected text was hard
to see. Raise selectionBg contrast: dark truecolor to #8a6d00, dark-256
to ansi256(58), dark-16 to yellow, and light-16 to magentaBright.

Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
@xfng-sd
xfng-sd requested a review from 0xKT July 22, 2026 07:12
@0xKT
0xKT merged commit 8749006 into main Jul 22, 2026
8 checks passed
@0xKT
0xKT deleted the fix/selection_bg_readability branch July 22, 2026 08:00
@0xKT 0xKT mentioned this pull request Jul 22, 2026
3 tasks
0xKT added a commit that referenced this pull request Jul 22, 2026
## Summary

Bump version from 0.1.7 to 0.1.8. Release commit only touches
`pyproject.toml` and `uv.lock` (kept in sync via `uv lock`).

Changes bundled into this release since v0.1.7:

- feat(importer): cold-start import from other AI tools with EverOS HTTP
backend (#170)
- fix(build): pin locked dependency versions in installers (#185)
- fix(cli): stop blank api key exiting deep_research prompt (#184)
- fix: use redirect-free install.ps1 url on windows powershell 5.1
(#182)
- fix(tui): brighten selection highlight for readability (#175)
- fix(commitlint): align subject-case with conventional-commits standard
(#187)

## Type

- [x] Other

## Verification

- [x] Relevant lint / type checks pass locally

```
python3 scripts/check_commit_messages.py origin/main..HEAD  # exit 0
git diff --stat  # pyproject.toml + uv.lock, 1 line each
```

## Risk

- [x] Backward compatibility considered

Version bump only; no source changes.

## Related Issues

N/A

Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
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