aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/app-util.js
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
commit83bbc3032c3d19220930db6ded9325fffeedd8f1 (patch)
treecd022d8e157b32dd4f1204a3de8c5271cda14edb /scripts/theme-studio/app-util.js
parente01b0de542e2c89faf21958b01134ef227367e69 (diff)
downloaddotemacs-83bbc3032c3d19220930db6ded9325fffeedd8f1.tar.gz
dotemacs-83bbc3032c3d19220930db6ded9325fffeedd8f1.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/app-util.js')
0 files changed, 0 insertions, 0 deletions