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

View file

@ -37,9 +37,10 @@ var ThemeOptions = function () {
// row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
// questionhelpbackgroundcolor as well; row 191 / plan P6: the six per-button
// 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.
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
// (object key order = swatch chip order) — row 125: "Default background 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
// 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
// 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
var aQuestionColumnAlign = [
{ 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'] }
];
var alignQuestionColumns = function () {