aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/browser-gates.js
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-19 10:42:22 -0400
committerCraig Jennings <c@cjennings.net>2026-06-19 10:42:22 -0400
commit90746a8dff5e3742bc992803fae008a761a0da68 (patch)
tree85d8f77285a1c0227447fd3373a0204ac952e3ca /scripts/theme-studio/browser-gates.js
parentca33fc6b2617a7e78851fa4a7453ad4ac5d31c91 (diff)
downloaddotemacs-90746a8dff5e3742bc992803fae008a761a0da68.tar.gz
dotemacs-90746a8dff5e3742bc992803fae008a761a0da68.zip
refactor(theme-studio): table-drive vibe chroma and share the inherit walk
vibeChroma was a ten-branch if-ladder of magic chroma constants; it's now a [base, range] lookup table, so a vibe is one row to read or tune. resolveSyntaxFg and resolveUiAttr each hand-rolled the same cycle-guarded inherit walk; both now call one walkInheritChain helper that takes the parent and value functions. effResolve keeps its own recursive form since it double-indexes through the package map. I left the palette-actions splice helpers (replacePaletteEntries, withCfg) and the paletteGroups dedup for a later pass: they mutate the live palette and are only browser-gate covered, so they want their own careful change rather than riding this one.
Diffstat (limited to 'scripts/theme-studio/browser-gates.js')
0 files changed, 0 insertions, 0 deletions