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
94
config.xml
94
config.xml
|
|
@ -536,29 +536,81 @@
|
|||
in custom_header.twig on .question-help-container. -->
|
||||
<!-- Questions -->
|
||||
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||
<!-- Per-element font+color combos (Prompt U; row 178 plan P6 moves the
|
||||
buttons ones into their own tab; the answers ones moved to the
|
||||
"Answer options and subquestions" section above in P3). Each element gets:
|
||||
- <el>font (type "fontselect"): the SAME choices as the base "font"
|
||||
dropdown above (bundled + variant-custom + browser fonts), plus a
|
||||
first option "Same as base font" (value "base" = no extra class, the
|
||||
element inherits the body font). Applied as class font-<value> on the
|
||||
element in the views (nav_bar, progress_bar, question_text_container,
|
||||
answers, help, group_name, group_desc, navigator). Default "base".
|
||||
- <el>textcolor (dropdown): text color mode for that element —
|
||||
default|primary|secondary|other (default "default" = the body font
|
||||
color fontcolor). Resolved to an inline style="color: …" in the views.
|
||||
- <el>textcolorcustom (colorpicker): only visible when <el>textcolor
|
||||
= "other" (parent show-value "other"). -->
|
||||
<buttonsfont type="fontselect" category="Questions" width="12" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
|
||||
<buttonstextcolor type="dropdown" category="Questions" width="12" title="Text color for the buttons (Previous/Next/Submit)" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
|
||||
<!-- Buttons tab (row 178 plan P6): own category directly after Questions,
|
||||
so the options page renders it as a tab directly after the Questions tab.
|
||||
One column per navigator button — col 1 = Previous, col 2 = Next,
|
||||
col 3 = Submit (row-178 decision 1). Each button gets a background color
|
||||
chooser and a text color chooser (6-way mode dropdown + a <key>custom
|
||||
colorpicker child for "other", same scheme as the other color choosers;
|
||||
resolved in custom_header.twig via cmm.cmbg() for backgrounds and
|
||||
cmm.cm() for text colors). Row-178 decision 7 defaults: Next/Submit
|
||||
background = Color 1, text color = Other ... #ffffff; Previous
|
||||
background = Other ... #ffffff, text color = Default font color.
|
||||
The old global buttonstextcolor(+custom) options are REPLACED by these
|
||||
per-button colors and were removed. buttonsfont (the font for all three
|
||||
buttons) is full-width at the top of this tab.
|
||||
NOT house-style (structural). -->
|
||||
<buttonsfont type="fontselect" category="Buttons" width="12" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
|
||||
<previousbuttonbackgroundcolor type="dropdown" category="Buttons" width="4" title="Previous button background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default button color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||
<dropdownoptions>
|
||||
<option value="default">Default button color</option>
|
||||
<option value="defaultbackgroundcolor">Default background color</option>
|
||||
<option value="color1">Color 1</option>
|
||||
<option value="color2">Color 2</option>
|
||||
<option value="color3">Color 3</option>
|
||||
<option value="other" data-default="1">[Other ...]</option>
|
||||
</dropdownoptions></previousbuttonbackgroundcolor>
|
||||
<previousbuttonbackgroundcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom previous button background color (for 'Other ...')" parent="previousbuttonbackgroundcolor">#ffffff</previousbuttonbackgroundcolorcustom>
|
||||
<previousbuttontextcolor type="dropdown" category="Buttons" width="4" title="Previous button text color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
|
||||
<dropdownoptions>
|
||||
<option value="default" data-default="1">[Default font color]</option>
|
||||
<option value="primary">Primary color</option>
|
||||
<option value="secondary">Secondary color</option>
|
||||
<option value="other">Other…</option>
|
||||
</dropdownoptions></buttonstextcolor>
|
||||
<buttonstextcolorcustom type="colorpicker" category="Questions" width="12" title="Custom text color for the buttons (Previous/Next/Submit)" parent="buttonstextcolor">#444444</buttonstextcolorcustom>
|
||||
<option value="defaultbackgroundcolor">Default background color</option>
|
||||
<option value="color1">Color 1</option>
|
||||
<option value="color2">Color 2</option>
|
||||
<option value="color3">Color 3</option>
|
||||
<option value="other">Other ...</option>
|
||||
</dropdownoptions></previousbuttontextcolor>
|
||||
<previousbuttontextcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom previous button text color (for 'Other ...')" parent="previousbuttontextcolor">#444444</previousbuttontextcolorcustom>
|
||||
<nextbuttonbackgroundcolor type="dropdown" category="Buttons" width="4" title="Next button background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default button color|Default background color|Color 1|Color 2|Color 3|Other ...">color1
|
||||
<dropdownoptions>
|
||||
<option value="default">Default button color</option>
|
||||
<option value="defaultbackgroundcolor">Default background color</option>
|
||||
<option value="color1" data-default="1">[Color 1]</option>
|
||||
<option value="color2">Color 2</option>
|
||||
<option value="color3">Color 3</option>
|
||||
<option value="other">Other ...</option>
|
||||
</dropdownoptions></nextbuttonbackgroundcolor>
|
||||
<nextbuttonbackgroundcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom next button background color (for 'Other ...')" parent="nextbuttonbackgroundcolor">#ffffff</nextbuttonbackgroundcolorcustom>
|
||||
<nextbuttontextcolor type="dropdown" category="Buttons" width="4" title="Next button text color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||
<dropdownoptions>
|
||||
<option value="default">Default font color</option>
|
||||
<option value="defaultbackgroundcolor">Default background color</option>
|
||||
<option value="color1">Color 1</option>
|
||||
<option value="color2">Color 2</option>
|
||||
<option value="color3">Color 3</option>
|
||||
<option value="other" data-default="1">[Other ...]</option>
|
||||
</dropdownoptions></nextbuttontextcolor>
|
||||
<nextbuttontextcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom next button text color (for 'Other ...')" parent="nextbuttontextcolor">#ffffff</nextbuttontextcolorcustom>
|
||||
<submitbuttonbackgroundcolor type="dropdown" category="Buttons" width="4" title="Submit button background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default button color|Default background color|Color 1|Color 2|Color 3|Other ...">color1
|
||||
<dropdownoptions>
|
||||
<option value="default">Default button color</option>
|
||||
<option value="defaultbackgroundcolor">Default background color</option>
|
||||
<option value="color1" data-default="1">[Color 1]</option>
|
||||
<option value="color2">Color 2</option>
|
||||
<option value="color3">Color 3</option>
|
||||
<option value="other">Other ...</option>
|
||||
</dropdownoptions></submitbuttonbackgroundcolor>
|
||||
<submitbuttonbackgroundcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom submit button background color (for 'Other ...')" parent="submitbuttonbackgroundcolor">#ffffff</submitbuttonbackgroundcolorcustom>
|
||||
<submitbuttontextcolor type="dropdown" category="Buttons" width="4" title="Submit button text color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||
<dropdownoptions>
|
||||
<option value="default">Default font color</option>
|
||||
<option value="defaultbackgroundcolor">Default background color</option>
|
||||
<option value="color1">Color 1</option>
|
||||
<option value="color2">Color 2</option>
|
||||
<option value="color3">Color 3</option>
|
||||
<option value="other" data-default="1">[Other ...]</option>
|
||||
</dropdownoptions></submitbuttontextcolor>
|
||||
<submitbuttontextcolorcustom type="colorpicker" category="Buttons" width="4" title="Custom submit button text color (for 'Other ...')" parent="submitbuttontextcolor">#ffffff</submitbuttontextcolorcustom>
|
||||
|
||||
<!-- Colors: no tab in the custom options page yet (Prompt T) — these two stay in core mode only. -->
|
||||
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
||||
|
|
|
|||
Loading…
Reference in a new issue