feat(options): row 227 — slider handle color gets the full swatch chooser + lowered like answers col 2; 'radio button' spacing

- options.js aColorChooserKeys += sliderhandlecolor: the option now gets the
  same color-chooser scheme as Checkbox/radio button color (6-way dropdown,
  5 preset swatches + 'Other ...' custom picker) in the options UI.
- alignQuestionColumns: answers section col 3 (slider handle color) is now
  lowered with the same measured padding-top as col 2 (checkbox color).
- config.xml: checkboxcolor title 'Checkbox/radiobutton color' ->
  'Checkbox/radio button color'.
Variant propagation parked per row 222 (no variant rebuilds/example sync).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-30 10:15:19 +01:00
commit c66eceb9bb
2 changed files with 7 additions and 5 deletions

View file

@ -492,7 +492,7 @@
6-way color chooser (+ custom child), like the other color options. 6-way color chooser (+ custom child), like the other color options.
Default mode "color2" (row 196); the custom child keeps #ff005f for Default mode "color2" (row 196); the custom child keeps #ff005f for
mode "other". --> mode "other". -->
<checkboxcolor type="dropdown" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">color2 <checkboxcolor type="dropdown" category="Questions" width="4" title="Checkbox/radio button color (when checked)" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">color2
<dropdownoptions> <dropdownoptions>
<option value="default">Default font color</option> <option value="default">Default font color</option>
<option value="defaultbackgroundcolor">Default background color</option> <option value="defaultbackgroundcolor">Default background color</option>

View file

@ -37,9 +37,10 @@ var ThemeOptions = function () {
// row 184 / plan P3: answerstextcolor as well; row 186 / plan P4: // row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
// questionhelpbackgroundcolor as well; row 191 / plan P6: the six per-button // questionhelpbackgroundcolor as well; row 191 / plan P6: the six per-button
// choosers (previous/next/submit button background + text color); row 195: // choosers (previous/next/submit button background + text color); row 195:
// checkboxcolor as well; row 197: questionhelpfontcolor + questionbordercolor. // checkboxcolor as well; row 197: questionhelpfontcolor + questionbordercolor;
// row 227: sliderhandlecolor as well (same scheme: dropdown + 5 swatches + custom).
// Must stay in sync with aColorChooserKeys in options/options.twig. // Must stay in sync with aColorChooserKeys in options/options.twig.
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionbordercolor', 'checkboxcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor']; var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionbordercolor', 'checkboxcolor', 'sliderhandlecolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
// the 5 presets, in the SAME order as the dropdown options in config.xml // the 5 presets, in the SAME order as the dropdown options in config.xml
// (object key order = swatch chip order) — row 125: "Default background color" // (object key order = swatch chip order) — row 125: "Default background color"
// is the SECOND choice, right after "Default font color". // is the SECOND choice, right after "Default font color".
@ -931,11 +932,12 @@ var ThemeOptions = function () {
// targets get a padding-top so their first control aligns with the font-color // targets get a padding-top so their first control aligns with the font-color
// chooser (ref) in the first column of the same section: // chooser (ref) in the first column of the same section:
// title section: cols 2+3 (title bg, body bg) align with the title text color // title section: cols 2+3 (title bg, body bg) align with the title text color
// answers section: col 2 (checkbox color) aligns with the answers text color // answers section: col 2 (checkbox color) + col 3 (slider handle color, row 227)
// align with the answers text color
// help section: col 2 (help bg) aligns with the help font color // help section: col 2 (help bg) aligns with the help font color
var aQuestionColumnAlign = [ var aQuestionColumnAlign = [
{ sec: 'title', ref: 'questiontitletextcolor', targets: ['questiontitlebackgroundcolor', 'questionbackgroundcolor'] }, { sec: 'title', ref: 'questiontitletextcolor', targets: ['questiontitlebackgroundcolor', 'questionbackgroundcolor'] },
{ sec: 'answers', ref: 'answerstextcolor', targets: ['checkboxcolor'] }, { sec: 'answers', ref: 'answerstextcolor', targets: ['checkboxcolor', 'sliderhandlecolor'] },
{ sec: 'help', ref: 'questionhelpfontcolor', targets: ['questionhelpbackgroundcolor'] } { sec: 'help', ref: 'questionhelpfontcolor', targets: ['questionhelpbackgroundcolor'] }
]; ];
var alignQuestionColumns = function () { var alignQuestionColumns = function () {