feat(options): new Buttons tab after Questions with per-button color choosers (row 178 plan P6)
- config.xml: new 'Buttons' category directly after Questions — buttonsfont (full width) + 12 per-button options (Previous/Next/Submit x background+ text, 6-way mode dropdown + custom picker, width 4); old global buttonstextcolor(+custom) removed (row-178 decision 7) - options.twig: Buttons pane = h2+intro, full-width font row, one row of three col-md-4 columns (Previous/Next/Submit, border-start dividers); 6 new keys in aColorChooserKeys; OPTIONS_JS_TOKEN 20261129.4 - options.js + build.php: chooser key lists synced (+6) - navigator.twig: respondage-btn-prev/-next/-submit classes, old global text color inline style removed; custom_header.twig: cmbg() macro (mode 'default' = no override) + per-button bg/text rules with decision-7 defaults (Next/Submit bg=Color 1 + text #ffffff, Previous bg=#ffffff + default font color) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
af3b408768
commit
aae3112981
1 changed files with 212 additions and 63 deletions
|
|
@ -35,9 +35,10 @@ var ThemeOptions = function () {
|
|||
// row 180 / plan P2: the Questions "title" section keys as well
|
||||
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
||||
// row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||
// questionhelpbackgroundcolor as well.
|
||||
// questionhelpbackgroundcolor as well; row 191 / plan P6: the six per-button
|
||||
// choosers (previous/next/submit button background + text color).
|
||||
// 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'];
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', '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".
|
||||
|
|
|
|||
Loading…
Reference in a new issue