From e6539d971a9d1a71e70fcbdb5395e54dad5f7479 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 20 Jun 2026 05:27:47 -0400 Subject: feat(theme-studio): unify per-row widgets across the assignment tables The color/code, UI, and package tables now share one per-row widget set, so the editing surface reads the same whatever view is selected. Column order is the same in all three: element, lock, fg, bg, style, contrast, example, box. Box moves to last in the color/code table, and the package table's inline inherit and size columns fold into the row expander, matching how UI and color/code already carry them. The UI overlay faces drop the inline PASS/FAIL word and the red FAIL badge on the preview swatch. They show a bare colored worst-case number with the WCAG verdict in the hover, like the other two tables. The orphaned .crerr style goes with it. The height picker now clamps a typed value into [0.1, 2.0]. A number input only enforces min/max on its stepper arrows, so a typed or pasted value reached the model unchecked. 0.1 is Emacs's own floor (a smaller height errors out), and 2.0 is the studio ceiling. Clearing the field still unsets to the inherited default. Tests: clampHeight unit tests plus a #heighttest browser gate. The column and contrast gates move to the new positions and the bare-number readout. --- scripts/theme-studio/theme-studio.template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/theme-studio/theme-studio.template.html') diff --git a/scripts/theme-studio/theme-studio.template.html b/scripts/theme-studio/theme-studio.template.html index 5f41eb66d..2d0236562 100644 --- a/scripts/theme-studio/theme-studio.template.html +++ b/scripts/theme-studio/theme-studio.template.html @@ -63,7 +63,7 @@ STYLES_CSS
-
elements △fg △bg △styleboxcontrastexample
+
elements △fg △bg △stylecontrastexamplebox
@@ -92,7 +92,7 @@ STYLES_CSS
-
face △fg △bg △stylecontrast △inherit △size △box
+
face △fg △bg △stylecontrast △box
-- cgit v1.2.3