refactor(options): 'Default fonts and colors' tab becomes 'Default font and colors' in one three-column row

Tab title and pane heading now 'Default font and colors' (description
unchanged); the pane is a single row with three col-md-4 columns:
col 1 = Default font (body text), Base font size (body text), Default font
color (body text); col 2 = Default background color; col 3 = Color 1
(primary), Color 2, Color 3. The old hr + 'Default colors' section between
the two rows is removed. config.xml mirrors this per the row 160 rule:
category renamed to the tab label, option order within the category = the
pane render order (fontsize moved before fontcolor), all seven options
width=4. Tab id stays 'category-fonts' so stored tab preferences survive.
All variants rebuilt (defensie/erasmus from the private defs,
respondage_respondage from /tmp/example_defs) and the tracked example
config synced from the built theme dir (it was stale from the deferred
rebuilds). options.js untouched, no OPTIONS_JS_TOKEN bump.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-29 11:56:04 +01:00
commit 44cef7d530

View file

@ -89,8 +89,8 @@
-->
<options>
<!-- Default fonts and colors tab (options.twig tab 1): top row font/fontcolor/fontsize (col-md-4), then the colors row (col-md-3). Row 159/160: the config.xml order within a category = the render order in options.twig, and width = the pane column width, so the core options renderer lays out the same structure. -->
<!-- Default fonts and colors
<!-- Default font and colors tab (options.twig tab 1): ONE row with three col-md-4 columns — col 1 = font, fontsize, fontcolor; col 2 = defaultbackgroundcolor; col 3 = primarycolor, secondarycolor, tertiarycolor (row 174). Row 159/160: the config.xml order within a category = the render order in options.twig, and width = the pane column width, so the core options renderer lays out the same structure. -->
<!-- Default font and colors
HOUSE-STYLE: the font choice and the four colors below are house-style specific (set per variant via variants/<client>.json).
PLACING A CUSTOM FONT - instructions:
1. Put the font file (e.g. .woff2) in the files/fonts/ folder of
@ -125,9 +125,9 @@
To bundle an open source font in THIS mother theme itself, follow
files/fonts/README.md (English walkthrough: files/fonts/ + css/fonts.css
+ the "Bundled open source fonts" optgroup below). -->
<!-- Default fonts and colors (row 159: category renamed to the tab label) -->
<!-- Default font and colors (row 159/174: category equals the options.twig tab label) -->
<!-- When adding new items, please keep fonts ordered alphabetically -->
<font type="dropdown" category="Default fonts and colors" width="4" title="Default font (body text)">noto_sans
<font type="dropdown" category="Default font and colors" width="4" title="Default font (body text)">noto_sans
<dropdownoptions>
<!-- Open source fonts bundled with this theme itself: font files in files/fonts/, @font-face + generic .font-<value> rules in css/fonts.css. See files/fonts/README.md (English) for how to add your own font here. -->
<optgroup label="Bundled open source fonts">
@ -157,23 +157,21 @@
</optgroup>
</dropdownoptions>
</font>
<!-- Prompt U: the "Default fonts and colors" tab has a special
layout (options.twig): TOP ROW column 1 = font, fontcolor, fontsize;
column 2 = primarycolor, secondarycolor (both moved here from the Colors
category); then an <hr>; then per-element combo rows (fontselect +
textcolor dropdown + conditional textcolorcustom picker); then the
size/weight options below. HOUSE-STYLE: fontcolor, primarycolor and
secondarycolor are set per variant via variants/<client>.json. -->
<fontcolor type="colorpicker" category="Default fonts and colors" width="4" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
<fontsize type="buttons" category="Default fonts and colors" width="4" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|XLarge&#10;(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
<!-- Row 174: the "Default font and colors" tab has ONE row with three
col-md-4 columns (options.twig): col 1 = font, fontsize, fontcolor;
col 2 = defaultbackgroundcolor; col 3 = the three colors below.
HOUSE-STYLE: the font choice and fontcolor/primarycolor/secondarycolor
are set per variant via variants/<client>.json. -->
<fontsize type="buttons" category="Default font and colors" width="4" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|XLarge&#10;(20 px)">16px</fontsize>
<fontcolor type="colorpicker" category="Default font and colors" width="4" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
<!-- Row 124/174: "Default background color" — column 2 of the single
three-column row in the "Default font and colors" tab. 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="Default fonts and colors" width="3" title="Default background color" options="on|off" optionlabels="Yes|No">#ffffff</defaultbackgroundcolor>
<primarycolor type="colorpicker" category="Default fonts and colors" width="3" title="Color 1 (primary)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
<secondarycolor type="colorpicker" category="Default fonts and colors" width="3" title="Color 2" options="on|off" optionlabels="Yes|No">#888888</secondarycolor>
<tertiarycolor type="colorpicker" category="Default fonts and colors" width="3" title="Color 3" options="on|off" optionlabels="Yes|No">#dddddd</tertiarycolor>
<defaultbackgroundcolor type="colorpicker" category="Default font and colors" width="4" title="Default background color" options="on|off" optionlabels="Yes|No">#ffffff</defaultbackgroundcolor>
<primarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 1 (primary)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
<secondarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 2" options="on|off" optionlabels="Yes|No">#888888</secondarycolor>
<tertiarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 3" options="on|off" optionlabels="Yes|No">#dddddd</tertiarycolor>
<!-- Header tab (options.twig tab 2, keys in aTopOfPageKeys order): header font + menu text color, header background color, sticky per device + header height, then the three logos, then the progress bar position/font/colors. -->
<headerfont type="fontselect" category="Header" width="4" title="Font for the header / top menu">base</headerfont>