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 | bf40c421420b9e195e53f5136a83ca726259d4ee (patch) | |
| tree | f9f7a97f496089e96cd93e1f1853718366e352f2 /scripts/theme-studio/face_data.py | |
| parent | 5bea7cecac5e739cd5184befe881f1d18cea53d8 (diff) | |
| download | dotemacs-bf40c421420b9e195e53f5136a83ca726259d4ee.tar.gz dotemacs-bf40c421420b9e195e53f5136a83ca726259d4ee.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/face_data.py')
0 files changed, 0 insertions, 0 deletions
