Feat/theme preview - #83
Conversation
Release v0.1.0
|
As of now only the colored squares of each theme entry are displayed. I found that displaying the color as a text value does not provide much additional value to the end user, but it can be trivially added in one of the I'm not sure what "A test asserts the preview lists all slots for a known built-in." means. All printed values are taken from the |
|
Thanks! I Tested locally and the swatches work great. A few things before merging:
|
…iew + new cli test
The background color was reset in the same println, so it never painted. The swatch renders from the foreground color alone. Also drop the leftover example comment block.
|
Two small changes were made on top of your work to keep the preview clean:
Everything else looks great. Thanks a lot for tackling this and for this contribution! 🙌 |
Summary
Colored theme preview with
tth theme preview <name>Motivation
Closes #80
Changes
color.into_crossterm()preview_theme_colors()Test plan
The changes are small and may not require additional tests
Review checklist
tth theme preview <name>prints every semantic slot with a colored swatch and its value.NO_COLOR(no ANSI when disabled).Breaking changes
None