feat(options): 'Default background color' as 4th column of the colors row + 5th swatch preset

New colorpicker option defaultbackgroundcolor (category Fonts, default
#ffffff), rendered as column 1 of the second row of the 'Default fonts and
colors' tab — that colors row is now 4 columns (col-md-3 each; the top row
stays 3 x col-md-4). The experimental color chooser (navbarfontcolor dropdown
+ swatch chips) gains this color as a 5th preset: dropdown option
'defaultbackgroundcolor', 5 swatch chips with live hex labels, presets map in
options.js extended, and custom_header.twig maps the mode to the option value.
OPTIONS_JS_TOKEN -> 20261126.6. Verified: render tc=558 (colors row =
defaultbackgroundcolor|primarycolor|secondarycolor|tertiarycolor in 4 col-md-3,
top row unchanged, divs balanced, dropdown has 6 options), jsdom suite 6/6
(5 chips pinned), live survey 282267 with mode defaultbackgroundcolor ->
#aabbcc (DB row restored), export 0. Variants not rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-26 14:57:25 +01:00
commit 12ec2820da

View file

@ -216,12 +216,13 @@
navbarfontcolorcustom is rendered VISIBLE but grayed out (disabled)
unless mode "other" (data-show-if-mode="disable" in options.twig) and
keeps its value across saves (data-keep-value in options.js). -->
<navbarfontcolor type="dropdown" category="Colors" width="12" title="Menu item text color in the top bar" options="default|color1|color2|color3|other" optionlabels="Same as default font color|Color 1|Color 2|Color 3|Other…">default
<navbarfontcolor type="dropdown" category="Colors" width="12" title="Menu item text color in the top bar" options="default|color1|color2|color3|defaultbackgroundcolor|other" optionlabels="Same as default font color|Color 1|Color 2|Color 3|Default background color|Other…">default
<dropdownoptions>
<option value="default">Same as default font color</option>
<option value="color1">Color 1</option>
<option value="color2">Color 2</option>
<option value="color3">Color 3</option>
<option value="defaultbackgroundcolor">Default background color</option>
<option value="other">Other…</option>
</dropdownoptions></navbarfontcolor>
<navbarfontcolorcustom type="colorpicker" category="Colors" width="12" title="Custom menu item text color (used when 'Other…' is chosen)" parent="navbarfontcolor">#444444</navbarfontcolorcustom>
@ -308,6 +309,11 @@
secondarycolor are set per variant via variants/<client>.json. -->
<fontcolor type="colorpicker" category="Fonts" width="12" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
<fontsize type="buttons" category="Fonts" width="12" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|Extra large (20 px)">16px</fontsize>
<!-- Row 124: "Default background color" — column 1 of the colors row in the
"Default fonts and colors" tab (that row is now 4 columns). It is also the
5th preset of the experimental color-chooser (navbarfontcolor dropdown +
swatches), so users can pick it anywhere a named color is offered. -->
<defaultbackgroundcolor type="colorpicker" category="Fonts" width="12" title="Default background color" options="on|off" optionlabels="Yes|No">#ffffff</defaultbackgroundcolor>
<primarycolor type="colorpicker" category="Fonts" width="12" title="Color 1 (primary)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
<secondarycolor type="colorpicker" category="Fonts" width="12" title="Color 2" options="on|off" optionlabels="Yes|No">#888888</secondarycolor>
<tertiarycolor type="colorpicker" category="Fonts" width="12" title="Color 3" options="on|off" optionlabels="Yes|No">#dddddd</tertiarycolor>