feat(options): row 221 — align Questions-tab color columns + move slider handle color into the answers section

Request 1: options.js generalizes the Header-tab column alignment
(alignHeaderColumns, measured padding-top) to the Questions tab via
alignQuestionColumns(): in the 'Question title and body' section columns 2
and 3 are top-aligned with the title text-color chooser in column 1; in
'Answer options and subquestions' column 2 (checkbox color) aligns with the
answers text color; in 'Question help' column 2 (help background) aligns with
the help font color. Runs on run(), on any shown.bs.tab and on resize (hidden
panes measure 0 and no-op).

Request 2: the orphaned full-width 'Slider handle color' picker at the bottom
of the Questions tab becomes a 6-way color chooser (default color2) with a
sliderhandlecolorcustom child, placed in the THIRD column of 'Answer options
and subquestions' (aQSlots answers:2). custom_header.twig resolves it via
cm() (legacy stored hex passes through). variants/build.php maps legacy hex
json values of variants to mode 'other' + custom child; all variants rebuilt
(defensie, erasmus) + example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-30 10:01:49 +01:00
commit e9c0ac5c14

View file

@ -502,6 +502,22 @@
<option value="other">Other ...</option>
</dropdownoptions></checkboxcolor>
<checkboxcolorcustom type="colorpicker" category="Questions" width="4" title="Custom checkbox/radiobutton color (for 'Other ...')" parent="checkboxcolor">#ff005f</checkboxcolorcustom>
<!-- row 221: the slider handle color is a 6-way color chooser (default
"color2", like checkboxcolor) in the THIRD column of the "Answer options
and subquestions" section (aQSlots answers:2 in options.twig) — no
longer an orphaned full-width row at the bottom of the Questions pane.
Applied in custom_header.twig via cm(); variants/build.php maps a legacy
hex json value to mode "other" + sliderhandlecolorcustom. -->
<sliderhandlecolor type="dropdown" category="Questions" width="4" title="Slider handle color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">color2
<dropdownoptions>
<option value="default">Default font color</option>
<option value="defaultbackgroundcolor">Default background color</option>
<option value="color1">Color 1</option>
<option value="color2" data-default="1">[Color 2]</option>
<option value="color3">Color 3</option>
<option value="other">Other ...</option>
</dropdownoptions></sliderhandlecolor>
<sliderhandlecolorcustom type="colorpicker" category="Questions" width="4" title="Custom slider handle color (for 'Other ...')" parent="sliderhandlecolor">#5e1c64</sliderhandlecolorcustom>
<!-- Row 178 plan P4 (row 186, revised row 195): section "Question help"
(options.twig) — a three-column grid (col-md-4, width 4):
col 1 = the font chooser for the help text + the help font color (stays a
@ -556,10 +572,6 @@
<questionborderradiusTR type="duration" category="Questions" width="4" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
<!-- row 204: the slider handle color moved here from the removed Colors
category — sliders appear inside questions, so it renders as a full-width
row at the end of the Questions pane (applied in custom_header.twig) -->
<sliderhandlecolor type="colorpicker" category="Questions" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
<!-- Questions
HOUSE-STYLE: the colorpicker options in this section (question
title/background/help/help-font/border/checkbox colors) are house-style
@ -665,7 +677,8 @@
<submitbuttontextcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom font color for the Submit button (for 'Other ...')" parent="submitbuttontextcolor">#ffffff</submitbuttontextcolorcustom>
<!-- row 204: the Colors category is gone — its last two options moved to
Page background (privacybackgroundcolor) and Questions (sliderhandlecolor),
Page background (privacybackgroundcolor) and Questions (sliderhandlecolor,
since row 221 a 6-way chooser in the answers section, not a full-width row),
so every remaining category is a visible tab again. -->
<!-- Other options tab (options.twig LAST tab): width 12 = full-width rows. -->