Files
hx/docs/adr/0034-theme-no-background.md
johannesandClaude Sonnet 5.5 a94632ea3d chore: delete code comments, add ratchet lint and ADRs
Classify every comment as tautology, stale, excuse or decision record.
Tautology/stale/excuse comments are deleted (excuses filed as issues
#196-#236), decisions moved to docs/adr/0001-0034.

- scripts/lint-comments.sh + .comment-baseline: per-file comment count
  may only go down; wired into tests/all.sh
- .claude/skills/delete-comment: repeatable audit workflow
- cargo fmt applied to touched crates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 13:37:32 +01:00

15 lines
695 B
Markdown

# Theme paints no background; colour marks status only
Status: accepted
## Context
The UI uses Catppuccin Mocha but must work on arbitrary terminal themes, NO_COLOR, ASCII-only and non-truecolor terminals.
## Decision
The background is never painted so the terminal's own ground shows through. Colour marks status only; `NO_COLOR` drops colours but keeps modifiers; `HX_ASCII=1` swaps in ASCII symbols; without `COLORTERM=truecolor|24bit` colours map to the nearest xterm-256 entry.
## Consequences
Works on light and dark terminals; diff backgrounds are mixed from the base colour rather than painted across the screen.
Code: crates/hx-tui/src/theme.rs (module, nearest xterm-256 mapping)