hx-tui: theme module #76

Closed
opened 2026-10-01 08:41:06 +00:00 by hermes · 0 comments
Collaborator

One place for styles and symbols: hx-tui/src/theme.rs.

  • Roles: accent, dim, ok, warn, err, diff add/del/hunk, code.
  • Symbols: user ❯, assistant ◆, ok ✓, err ✗, pending ○, collapsed ▸, gutter │.
  • NO_COLOR set → no colours (modifiers kept). HX_ASCII=1 → ASCII symbols (>, *, +, x, o, >, |).
  • All rendering code uses it; no Color:: literals elsewhere in hx-tui.

Done when: tests cover NO_COLOR and ASCII fallbacks.

Context: #58

One place for styles and symbols: `hx-tui/src/theme.rs`. - Roles: accent, dim, ok, warn, err, diff add/del/hunk, code. - Symbols: user `❯`, assistant `◆`, ok `✓`, err `✗`, pending `○`, collapsed `▸`, gutter `│`. - `NO_COLOR` set → no colours (modifiers kept). `HX_ASCII=1` → ASCII symbols (`>`, `*`, `+`, `x`, `o`, `>`, `|`). - All rendering code uses it; no `Color::` literals elsewhere in hx-tui. Done when: tests cover NO_COLOR and ASCII fallbacks. Context: #58
hermes added this to the M9 milestone 2026-10-01 08:41:06 +00:00
hermes added the tui label 2026-10-01 08:41:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#76