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
|
|
@ -47,7 +47,7 @@
|
|||
heuristically cached copy (the file has only Last-Modified/ETag, no Cache-Control).
|
||||
Re-register it with a version token: bump OPTIONS_JS_TOKEN below whenever
|
||||
options/options.js changes, so every browser fetches the new file once. #}
|
||||
{% set OPTIONS_JS_TOKEN = '20261129.2' %}
|
||||
{% set OPTIONS_JS_TOKEN = '20261129.3' %}
|
||||
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
|
||||
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
|
||||
|
||||
|
|
@ -290,9 +290,10 @@
|
|||
|
||||
{# row 180 / plan P2: the Questions "title" section keys joined the chooser scheme
|
||||
(questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
||||
row 184 / plan P3: answerstextcolor as well. Must stay in sync with
|
||||
row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||
questionhelpbackgroundcolor as well. Must stay in sync with
|
||||
aColorChooserKeys in options/options.js. #}
|
||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor'] %}
|
||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor'] %}
|
||||
|
||||
{% set aShowIfValues = { 'questionborder': 'box|top', 'navbarfontcolor': 'other' } %}
|
||||
{% for el in aFontElements %}{% set aShowIfValues = aShowIfValues|merge({ (el ~ 'textcolor'): 'other' }) %}{% endfor %}
|
||||
|
|
@ -313,7 +314,9 @@
|
|||
{% set aFontsCol2 = ['defaultbackgroundcolor'] %}
|
||||
{% set aFontsCol3 = ['primarycolor', 'secondarycolor', 'tertiarycolor'] %}
|
||||
|
||||
{% set aQuestionsCol1 = ['questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionhelptextposition'] %}
|
||||
{# row 186 / plan P4: the help keys moved into their own "Question help" section
|
||||
(aQSlots above) — legacy column 1 is empty now #}
|
||||
{% set aQuestionsCol1 = [] %}
|
||||
{% set aQuestionsCol2 = ['questionborder', 'questionbordercolor', 'questionborderstyle', 'questiondropdown', 'questionborderradiusTL', 'questionborderradiusTR', 'questionborderradiusBL', 'questionborderradiusBR'] %}
|
||||
{% set aQuestionsCol3 = ['checkboxcolor'] %}
|
||||
{# row 178/179 plan: the Questions pane is built from SECTIONS — each section is an
|
||||
|
|
@ -328,7 +331,8 @@
|
|||
{% set aQSections = [
|
||||
{ 'id': 'overall', 'h3': 'Overall question', 'colClass': 'col-md-4' },
|
||||
{ 'id': 'title', 'h3': 'Question title and body', 'colClass': 'col-md-4' },
|
||||
{ 'id': 'answers', 'h3': 'Answer options and subquestions', 'colClass': 'col-md-4' }
|
||||
{ 'id': 'answers', 'h3': 'Answer options and subquestions', 'colClass': 'col-md-4' },
|
||||
{ 'id': 'help', 'h3': 'Question help', 'colClass': 'col-md-4' }
|
||||
] %}
|
||||
{% set aQSlots = {
|
||||
'questiondistance': 'overall:0', 'questiondistancebottom': 'overall:0',
|
||||
|
|
@ -336,7 +340,9 @@
|
|||
'questiontitlefontsize': 'title:0', 'questiontitlefontoptions': 'title:0', 'questiontitlefontcolor': 'title:0',
|
||||
'questiontitlebackgroundcolor': 'title:1', 'questiontitlebackgroundcolorcustom': 'title:1',
|
||||
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
|
||||
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0'
|
||||
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0',
|
||||
'questionhelpbackgroundcolor': 'help:0', 'questionhelpbackgroundcolorcustom': 'help:0',
|
||||
'questionhelpfontcolor': 'help:0', 'questionhelptextposition': 'help:0'
|
||||
} %}
|
||||
|
||||
{# row 147: all group-related options of the "Questions" category — they are
|
||||
|
|
|
|||
Loading…
Reference in a new issue