diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-15 19:19:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-15 19:19:38 -0500 |
| commit | 354f52b73accf6b1c4e5a5ca0b5eaec2e0809588 (patch) | |
| tree | 66258194fa3eb53aa123d4d24fd0c931f81c5d7a /scripts/theme-studio/run-tests.sh | |
| parent | 1441a9a9d83bb0562c2e92ea85fa4f6585783aaa (diff) | |
| download | dotemacs-354f52b73accf6b1c4e5a5ca0b5eaec2e0809588.tar.gz dotemacs-354f52b73accf6b1c4e5a5ca0b5eaec2e0809588.zip | |
feat(theme-studio): flag unused palette tiles and columns
I added usedPaletteHexes, a reverse lookup over the syntax, ui, and package assignments (plus the ground endpoints) that resolves each reference to a hex. renderPalette outlines a tile whose color is referenced nowhere and outlines a whole column when none of its colors are used, so dead colors stand out for pruning before a theme ships. The check is biased safe: an unresolvable reference marks nothing, so a color that is actually used is never flagged.
Node tests cover the lookup. A #unusedtest gate covers the tile and column flags.
Diffstat (limited to 'scripts/theme-studio/run-tests.sh')
0 files changed, 0 insertions, 0 deletions
