aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/samples.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-15 19:19:38 -0500
committerCraig Jennings <c@cjennings.net>2026-06-15 19:19:38 -0500
commitbf40c421420b9e195e53f5136a83ca726259d4ee (patch)
treef9f7a97f496089e96cd93e1f1853718366e352f2 /scripts/theme-studio/samples.py
parent5bea7cecac5e739cd5184befe881f1d18cea53d8 (diff)
downloaddotemacs-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/samples.py')
0 files changed, 0 insertions, 0 deletions