feat(options): Questions tab 'Question help' section; help background becomes a 6-way color chooser (row 178 plan P4)
New section (h3 + first col-md-4 of a 3-column grid, only it used): questionhelpbackgroundcolor as 6-way chooser (default 'other' + custom #fff3cd, look unchanged) + questionhelpbackgroundcolorcustom, the plain help font color picker (stays plain per row-178 decision 8) and the help text position; keys moved between the answers block and the border options, legacy col 1 is empty now. questionhelpbackgroundcolor joined aColorChooserKeys (twig + js, OPTIONS_JS_TOKEN 20261129.3) and the build.php chooser migration; custom_header.twig resolves it via cm() (legacy hex passes through). Variants rebuilt, example config synced. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
82ce4284ad
commit
ff998489b9
1 changed files with 61 additions and 22 deletions
|
|
@ -34,9 +34,10 @@ var ThemeOptions = function () {
|
|||
// 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);
|
||||
// row 184 / plan P3: answerstextcolor as well.
|
||||
// row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||
// questionhelpbackgroundcolor 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', 'answerstextcolor'];
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor'];
|
||||
// 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