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 () {