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
|
|
@ -273,14 +273,15 @@ foreach ($logoPositions as $pos) {
|
|||
// progressbarfontcolor, bodybackgroundcolor, grouptitletextcolor,
|
||||
// groupdescriptiontextcolor; row 180 plan P2 adds questiontitletextcolor,
|
||||
// questiontitlebackgroundcolor, questionbackgroundcolor; row 184 plan P3 adds
|
||||
// answerstextcolor; row 186 plan P4 adds questionhelpbackgroundcolor) became mode
|
||||
// answerstextcolor; row 186 plan P4 adds questionhelpbackgroundcolor; row 191 plan
|
||||
// P6 adds the six per-button choosers) became mode
|
||||
// dropdowns
|
||||
// (default|defaultbackgroundcolor|color1|color2|color3|other) with a <key>custom
|
||||
// colorpicker child. A legacy HEX value in the json means "custom color": map it
|
||||
// to mode "other" and move the hex into the <key>custom child, so the variant
|
||||
// default stays valid for the dropdown. A legacy mode "primary"/"secondary"
|
||||
// (old 4-way textcolor dropdown) maps to "color1"/"color2".
|
||||
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor'];
|
||||
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
$colorChooserLegacyModes = ['primary' => 'color1', 'secondary' => 'color2'];
|
||||
foreach ($colorChooserKeys as $ck) {
|
||||
if (isset($definition['options'][$ck])
|
||||
|
|
|
|||
Loading…
Reference in a new issue