aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/browser-gates.js
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-19 11:00:58 -0400
committerCraig Jennings <c@cjennings.net>2026-06-19 11:00:58 -0400
commit16e8b5c4804dedbc4fa41e6068e95acecf1b5329 (patch)
treeaa011528d72fbe39e724413ce072f373361ab0a8 /scripts/theme-studio/browser-gates.js
parent946e57555f6a13c3cfb03e8547cec9b746c4c3c9 (diff)
downloaddotemacs-16e8b5c4804dedbc4fa41e6068e95acecf1b5329.tar.gz
dotemacs-16e8b5c4804dedbc4fa41e6068e95acecf1b5329.zip
refactor(theme-studio): derive the Python face model from one spec list
STYLE_DEFAULTS, default_faces.seed, and capture-default-faces' ATTRS each hand-listed the face attributes, so adding one meant editing three places in step. face_specs.FACE_ATTRS is now one row per attribute carrying the model key, default, capture keyword, snapshot field, and seed transform kind. STYLE_DEFAULTS derives from it (same keys, order, and values), seed iterates it applying the per-kind extraction, and the capture probe map derives its emacs-attr to snapshot-field pairs from it. The snapshot-to-model translation stays genuinely per-attribute (colors prefer the Hex variant, flags become objects, weight/slant are value-narrowed), but the attribute list itself is now single-sourced. Verified byte-identical: STYLE_DEFAULTS and ATTRS match the old literals, the generated page is unchanged, and the suite is green. app-core.js mirrors this list by hand since the page is a separate runtime.
Diffstat (limited to 'scripts/theme-studio/browser-gates.js')
0 files changed, 0 insertions, 0 deletions