aboutsummaryrefslogtreecommitdiff
path: root/scripts/setup-telega.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-09 05:19:58 -0500
committerCraig Jennings <c@cjennings.net>2026-06-09 05:19:58 -0500
commit89d079fe0399c694e7738ea95aec7aa19253e7ac (patch)
treeb2b2ac6b245e643ca50570e5c5285f667a604eb6 /scripts/setup-telega.sh
parent87778055a20b3065c8ef185d59774522908a0d0e (diff)
downloaddotemacs-89d079fe0399c694e7738ea95aec7aa19253e7ac.tar.gz
dotemacs-89d079fe0399c694e7738ea95aec7aa19253e7ac.zip
refactor(theme-studio): parameterize clear-unlocked, add effFg/effBg helpers
The three clear-unlocked functions (syntax, UI, package) repeated the same loop: walk the tier's rows, skip the locked ones, reset the rest. Pulled that into clearUnlockedRows(items, keyFn, resetFn) — keyFn returns a row's lock key or null to skip it outright (syntax bg and the default fg), resetFn does the tier-specific clearing. #locktest already pins clear-unlocked-skips-locked across all three tiers, so it guards this directly. The "unset foreground reads as the default fg, unset background as the ground" fallback was written inline at nine sites as ||MAP['p'] / ||MAP['bg']. Replaced them with effFg(v) and effBg(v). The syntax, UI, and package render paths now resolve their raw value through the same two helpers. Behavior-preserving: the rendered DOM (script stripped) is byte-identical to before, and every gate stays green.
Diffstat (limited to 'scripts/setup-telega.sh')
0 files changed, 0 insertions, 0 deletions