Skip to content

Improve TUI selection contrast and calm healthy probe history - #153

Merged
lance0 merged 2 commits into
masterfrom
fix/tui-theme-readability
Oct 16, 2026
Merged

lance0 merged 2 commits into
masterfrom
fix/tui-theme-readability

Conversation

@lance0

@lance0 lance0 commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Selected rows lose readable ASN/status text in nine of the ten RGB themes; Solarized also has low-contrast primary selected text. Healthy routes fill the Recent column with bright green blocks, competing with actual failures.

Prepare a selection palette once per draw that adjusts only foregrounds below 4.5:1 contrast against the known selection background. Apply it to hop rows, targets and replay progress. Keep terminal-controlled ANSI colors unchanged. Recent outcomes now use quiet reply dots and individually colored timeout crosses; zero loss is quieter, and help explains the history direction and symbols. Document adaptive columns, scrolling and global Ctrl-C.

Stacked on #152. The contrast target uses W3C's sRGB definition as a readability benchmark, without making a terminal-wide accessibility claim: https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html.

Validation: full build/test/clippy/fmt/doc checks and Rust 1.88 all-target check. Regression tests cover every selected foreground in all RGB palettes, light-background contrast, ANSI preservation and history order/color. Inspected headless buffer previews at 80×24 and 120×30. Release render audit: typical screen p95 0.251 ms; dense 64-hop/16-responder screen p95 1.274 ms (Nord RGB palette 1.283 ms). Repeated PTY checks retain ~21 ms pause response after 80 queued keys, working Ctrl-C in Settings and zero idle output.

Integration check: all ten draft branches (#144–#153) merge together locally without conflicts. The combined build, full tests, clippy, formatting, documentation and Rust 1.88 all-target check pass. Platform build CI currently targets PRs based on master; stacked drafts receive the security audit and will gain platform checks when retargeted.

@lance0
lance0 force-pushed the fix/tui-input-responsiveness branch from a527ce3 to 8419976 Compare October 16, 2026 15:53
@lance0
lance0 force-pushed the fix/tui-theme-readability branch from a812551 to dc2b359 Compare October 16, 2026 15:55
@lance0
lance0 changed the base branch from fix/tui-input-responsiveness to master October 16, 2026 15:59
@lance0
lance0 marked this pull request as ready for review October 16, 2026 16:01
lance0 and others added 2 commits October 16, 2026 12:02
… helper

The table-wide theme.text style forced ANSI White onto every row in the
default theme, which is unreadable on light terminal backgrounds. Selected
rows already set their own contrast-adjusted foreground.
@lance0
lance0 force-pushed the fix/tui-theme-readability branch from dc2b359 to 0e69c5e Compare October 16, 2026 16:02
lance0 added a commit that referenced this pull request Oct 16, 2026
@lance0
lance0 merged commit 7aaef88 into master Oct 16, 2026
6 checks passed
lance0 added a commit that referenced this pull request Oct 16, 2026
* docs: CHANGELOG for the October fix batch

* docs: add #153 to CHANGELOG
@lance0
lance0 deleted the fix/tui-theme-readability branch October 16, 2026 16:13
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.

1 participant