aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/browser-gates.js
Commit message (Collapse)AuthorAgeFilesLines
* chore(theme-studio): remove dead code and clear a type warningCraig Jennings4 days1-1/+1
| | | | | | | | | - ramp (app-core.js) and its test-ramp.mjs: superseded by regenColumn, no production caller. - optList (app-core.js) and its tests: superseded by paletteOptionList. - ITALIC in generate.py: computed, never read (ITALIC_MAP is the live one). - a stray empty string in MU4E_FACES that .split() silently dropped. - the dead #familytest alias in the columntest gate, which HASHES never listed. - widen face_rows to Sequence[str], clearing the list-invariance warnings on the APPS calls.
* fix(theme-studio): make broken browser gates fail instead of silently passingCraig Jennings4 days1-4/+8
| | | | | | run-tests.sh scored each browser gate by grepping the dumped DOM for the gate name and taking the first match. A gate that throws before setting its verdict left its own inlined source as the first match, and that source, "GATENAME '+(ok?'PASS':'FAIL')", contains the literal PASS, so the run reported green for a gate that never produced a verdict. The matcher now requires a resolved "GATENAME PASS" or "GATENAME FAIL". That exposed two gates that had been throwing unnoticed. baseedittest still referenced fam after the variable was renamed to column, so it ReferenceError'd. columntest read getComputedStyle on a palette chip captured before a re-render detached it, so the match returned null and threw. baseedittest now uses column, and columntest re-queries the live chip by its selection index.
* feat(theme-studio): auto-dim split previewCraig Jennings4 days1-0/+19
| | | | | | | | auto-dim-other-buffers is a package face, not a theme face, so build-inventory.el (it scans only elpa/straight packages) never listed it and the studio couldn't theme it. This adds it as a bespoke app. The preview is a vertical split: the focused window on the left in real syntax colors, the same code on the right collapsed to the single auto-dim-other-buffers face, the way Emacs renders a non-selected window. Both panes follow the language selector. A trailing row shows auto-dim-other-buffers-hide, whose foreground matches the background so it vanishes when dimmed. A #autodimtest gate covers the split, the uniform recolor, and language sync.
* feat(theme-studio): palette generator and preview fidelityCraig Jennings4 days1-3/+87
| | | | | | | | | | Two strands land together because the generated theme-studio.html bundles every source file into one page and can't be split cleanly. The palette generator is a preview-first panel: palette-generator-core.js plans the palette and palette-generator-ui.js draws it. Generated colors stay inspectable and tunable through the existing selector, and committing one creates a normal base column. It adds source-mode and scheme controls, a configurable accent count, and color names from color-names.json. For preview fidelity, syntax and UI colors now resolve through the real Emacs inherit chains, so the preview matches how Emacs renders the theme. resolveSyntaxFg pins dec to ty (Emacs has no decorator face) and otherwise follows comment-delimiter to comment, doc to string, property to variable, function-call to function-name. resolveUiAttr walks mode-line-inactive to mode-line and line-number-current-line to line-number. The decorator label now reads "decorator to type" to match the type face Emacs uses for it. Design recorded in the two theme-studio specs under docs/.
* Update theme studio palette workflowCraig Jennings5 days1-33/+60
|
* Add theme studio box color controlsCraig Jennings5 days1-2/+14
|
* Shorten theme studio reset erase labelsCraig Jennings5 days1-1/+1
|
* Clarify theme studio reset and erase actionsCraig Jennings5 days1-7/+17
|
* Add theme studio face color step arrowsCraig Jennings5 days1-8/+18
|
* Preview selected theme studio chip while pickingCraig Jennings5 days1-0/+5
|
* Change theme studio spans to endpoint divisionsCraig Jennings5 days1-1/+3
|
* Fix theme studio span endpoint tilesCraig Jennings5 days1-4/+10
|
* Fix theme studio ground endpoint editCraig Jennings5 days1-0/+10
|
* Fix theme studio fg endpoint selectionCraig Jennings5 days1-2/+9
|
* Refine theme studio tile name editingCraig Jennings5 days1-0/+9
|
* Make theme studio column delete saferCraig Jennings5 days1-1/+7
|
* Add theme studio column deleteCraig Jennings5 days1-0/+12
|
* Refactor theme studio palette testsCraig Jennings5 days1-0/+428