diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-19 10:42:22 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-19 10:42:22 -0400 |
| commit | 2db5cb03b18317db3aa67b9ec57e72ef304d1694 (patch) | |
| tree | e707db2903301a8583ce215910eeea21e7f4371a /scripts/theme-studio/app-util.js | |
| parent | fe2b3b615552702a6d6df13ad9b786c379c8bc3e (diff) | |
| download | dotemacs-2db5cb03b18317db3aa67b9ec57e72ef304d1694.tar.gz dotemacs-2db5cb03b18317db3aa67b9ec57e72ef304d1694.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/app-util.js')
0 files changed, 0 insertions, 0 deletions
