diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-09 04:43:43 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-09 04:43:43 -0500 |
| commit | 7bf7ff5f6dba3eaf5150a0c65969fe7c92ef7043 (patch) | |
| tree | 9a761668bed04eea37f1fd9c41c468cadb2457e3 /scripts/theme-studio/app.js | |
| parent | 27e4b0b350e62d4d66430b2ec3d1483d49bf9f46 (diff) | |
| download | dotemacs-7bf7ff5f6dba3eaf5150a0c65969fe7c92ef7043.tar.gz dotemacs-7bf7ff5f6dba3eaf5150a0c65969fe7c92ef7043.zip | |
feat(theme-studio): swatch dropdowns, lock toggles, palette seeding
The design session added a batch of tool features. They landed together in the page generator, so this commits them as one.
A custom swatch color dropdown replaces the native select in the syntax table, showing a color square, name, and hex per row, because native option backgrounds render unreliably on Linux Chrome.
THEME_STUDIO_SEED=<file.json> seeds the tool's starting palette, assignments, bold, italic, and UI from a theme.json at generate time, so opening the tool on a given palette is one regenerate with no import step.
Lock toggles sit on all three tables. A closed lock marks a decided element/color pairing and disables that row's editing controls. Clear-unlocked resets the rest to default and leaves the locked rows alone. Locks persist in the saved theme, with keys namespaced (bare syntax, ui:, pkg:) so the tiers don't collide.
The UI faces table gained a contrast column, and the three tables now share one column order: name, lock, color, style, contrast. The bg and fg rows are renamed to "bg (ground)" and "fg".
Diffstat (limited to 'scripts/theme-studio/app.js')
0 files changed, 0 insertions, 0 deletions
