From 3581c7d1c05eb514aa5462b1142605541fb64d9e Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 2 Jul 2026 23:40:16 -0400 Subject: feat(theme-studio): inline height control on the exposed face rows A new size column in the UI and package tables carries one numeric field plus an abs/rel toggle, exposed per the editable-height spec: chrome faces (mode-line family, line-number family, and header-line/tab-bar/tab-line when they arrive) default to absolute 1/10pt entry with a computed pt hint; the seeded heading faces (org-level-*, document title/info, agenda structure/dates, shr headings, and friends) default to a relative multiplier. Any other face carrying a live height exposes the control dynamically; the long tail gets none. Absolute entry takes a positive integer only; relative entry clamps into the 0.1-2.0 range the old field used; garbage never reaches the model. The toggle writes heightMode explicitly and clears the number on a flip, since 130 tenth-points and 1.3x mean different things. The kind-unaware height field in the row expander is retired, and a non-default height now marks the size cell instead of the expander toggle. The seeded set is named statically in app-core.js because the per-row default comes from the captured Emacs snapshot, which carries no heights for those faces. The #preview screenshot hash now accepts @ui/@code view keys so the harness can shoot the UI table. --- 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 79aaaa19..da2d1464 100644 --- a/scripts/theme-studio/theme-studio.template.html +++ b/scripts/theme-studio/theme-studio.template.html @@ -75,7 +75,7 @@ STYLES_CSS
-
face △fg △bg △styleboxcontrast △preview
+
face △fg △bg △styleboxcontrast △sizepreview
@@ -92,7 +92,7 @@ STYLES_CSS
-
face △fg △bg △styleboxcontrast △
+
face △fg △bg △styleboxcontrast △size
-- cgit v1.2.3