Skip to content

feat(tui): add deterministic SVG theme previews - #1045

Merged
hakula139 merged 2 commits into
mainfrom
feat/svg-theme-previews
Dec 3, 2026
Merged

hakula139 merged 2 commits into
mainfrom
feat/svg-theme-previews

Conversation

@hakula139

Copy link
Copy Markdown
Member

Summary

  • Add a self-contained snapshot integration test in crates/ox-tui/tests/theme_previews.rs that renders a canonical App session for every built-in theme (catppuccin-mocha, catppuccin-latte, material-dark, ansi) through ox_tui::render into deterministic macOS-framed SVGs.
  • Generate and commit docs/assets/themes/{catppuccin-mocha,catppuccin-latte,material-dark,ansi}.svg (updatable via UPDATE_THEME_PREVIEWS=1 cargo test -p ox-tui --test theme_previews).
  • Embed all four theme previews under ## Built-in Palettes in docs/reference/tui/themes.md and embed catppuccin-mocha.svg directly as the hero preview in README.md linking to docs/reference/tui/themes.md#previews.
  • Add verified font / SVG vocabulary (Consolas, Menlo, tspan) to .cspell/words.txt.

Test plan

  • UPDATE_THEME_PREVIEWS=1 cargo test -p ox-tui --test theme_previews
  • cargo test -p ox-tui --test theme_previews
  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • nix develop -c run-hooks

@hakula139 hakula139 added documentation Documentation changes enhancement New capability area: tui Touches terminal UI rendering, input, or theming labels Dec 3, 2026
@hakula139 hakula139 self-assigned this Dec 3, 2026
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hakula139
hakula139 merged commit 20d4fe2 into main Dec 3, 2026
7 checks passed
@hakula139
hakula139 deleted the feat/svg-theme-previews branch December 3, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tui Touches terminal UI rendering, input, or theming documentation Documentation changes enhancement New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant