feat(options): Questions tab 'Answer options and subquestions' section; answerstextcolor becomes a 6-way color chooser (row 178 plan P3)
New section in the Questions pane (h3 + first col-md-4 of a 3-column grid, only it used): answersfont + answerstextcolor + answerstextcolorcustom, moved up in config.xml between the title block and the help options, width 12 -> 4. answerstextcolor upgraded to the chooser scheme (default|defaultbackgroundcolor|color1|color2|color3|other, default stays 'default'), added to aColorChooserKeys in options.twig/options.js (OPTIONS_JS_TOKEN 20261129.2) and to the build.php chooser migration. Views (answers, survey_question_help, valid_message_and_help): 6-way mapping with legacy primary/secondary + raw hex passthrough. All 3 variants rebuilt, example config synced. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
1085c5d132
commit
e061f7c0f3
1 changed files with 77 additions and 40 deletions
|
|
@ -33,9 +33,10 @@ var ThemeOptions = function () {
|
|||
// class selector_color_mode + swatch chips + a <key>custom colorpicker child);
|
||||
// row 157: the group title/description text colors joined the scheme;
|
||||
// row 180 / plan P2: the Questions "title" section keys as well
|
||||
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor).
|
||||
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
||||
// row 184 / plan P3: answerstextcolor as well.
|
||||
// Must stay in sync with aColorChooserKeys in options/options.twig.
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor'];
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor'];
|
||||
// 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