diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-09 05:06:46 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-09 05:06:46 -0500 |
| commit | f2be964efb3fd49b4091a5ef667e940f7b723ad3 (patch) | |
| tree | 73f4178dd254b7f73804c3a314131a4c51a3a261 /scripts/theme-studio/test-app-core.mjs | |
| parent | 1908fc3d0e7069aaac2757c4ef9e0eafd4ae2b57 (diff) | |
| download | dotemacs-f2be964efb3fd49b4091a5ef667e940f7b723ad3.tar.gz dotemacs-f2be964efb3fd49b4091a5ef667e940f7b723ad3.zip | |
refactor(theme-studio): unify color dropdowns on the swatch picker
The UI and package tables used a native <select> for fg/bg, while the syntax table used the swatch-div dropdown (mkColorDropdown). The native select rendered its option swatch colors unreliably on Linux Chrome — the reason the swatch div exists. Routed all three tiers through mkColorDropdown and deleted colorDropdown, so every color picker now shows real swatches. The inherit column stays a select; it picks a face name, not a color.
Pulled the option-list construction into a shared ddList helper (default entry, palette, plus a "(gone)" entry when the current color left the palette) — the syntax table built that inline, the other tiers now reuse it. To keep fg/bg columns sorting by color value rather than by displayed name, the swatch dropdown exposes its value as data-val and cellVal reads it. Updated #locktest's UI assertion to the div lock mechanism (data-locked) since the UI control is no longer a select.
Diffstat (limited to 'scripts/theme-studio/test-app-core.mjs')
0 files changed, 0 insertions, 0 deletions
