From c66eceb9bbfb497997a77c12ba770dd1818b31d8 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Mon, 30 Nov 2026 10:15:19 +0100 Subject: [PATCH] =?UTF-8?q?feat(options):=20row=20227=20=E2=80=94=20slider?= =?UTF-8?q?=20handle=20color=20gets=20the=20full=20swatch=20chooser=20+=20?= =?UTF-8?q?lowered=20like=20answers=20col=202;=20'radio=20button'=20spacin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- config.xml | 2 +- options/options.js | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config.xml b/config.xml index 4eca6c1..882562f 100644 --- a/config.xml +++ b/config.xml @@ -492,7 +492,7 @@ 6-way color chooser (+ custom child), like the other color options. Default mode "color2" (row 196); the custom child keeps #ff005f for mode "other". --> - color2 + color2 diff --git a/options/options.js b/options/options.js index e2de301..ac5e430 100644 --- a/options/options.js +++ b/options/options.js @@ -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 () {