feat(options): rename navbarfontcolor to "Text color in header"; re-measure header alignment on tab show

Row 142, two changes:
1. The navbarfontcolor option is renamed "Menu item color in header" ->
   "Text color in header" (child: "Custom text color in header ..."). Labels
   are read live from config.xml, no reset needed.
2. The header background color column alignment (row 136) is now re-measured
   when the Top-of-page tab is shown (shown.bs.tab) and on window resize, and
   after the stored-tab restore (row 133) when that tab is Top-of-page. Reason:
   at page load the Top-of-page pane is usually hidden (display:none), where
   getBoundingClientRect returns 0 — so the one-shot measurement in run()
   computed a 0 offset and the background column was never lowered on the real
   page. OPTIONS_JS_TOKEN -> 20261126.17. Verified: render tc=663 (new label,
   old label gone, options.js?v=20261126.17), jsdom 7/7 incl. new pins (padding
   re-applied on shown.bs.tab, label renamed), export exit 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 20:04:33 +01:00
commit cd62f2f752

View file

@ -257,7 +257,7 @@
"Default background color", "Color 1", "Color 2", "Color 3",
"Other ..." — options.js appends each entry's live hexcode in brackets
(for "Other ..." the custom color's hex) and bolds the default. -->
<navbarfontcolor type="dropdown" category="Colors" width="12" title="Menu item color in header" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
<navbarfontcolor type="dropdown" category="Colors" width="12" title="Text color in header" 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="defaultbackgroundcolor">Default background color</option>
@ -266,7 +266,7 @@
<option value="color3">Color 3</option>
<option value="other">Other ...</option>
</dropdownoptions></navbarfontcolor>
<navbarfontcolorcustom type="colorpicker" category="Colors" width="12" title="Custom menu item color (used when 'Other ...' is chosen)" parent="navbarfontcolor">#444444</navbarfontcolorcustom>
<navbarfontcolorcustom type="colorpicker" category="Colors" width="12" title="Custom text color in header (used when 'Other ...' is chosen)" parent="navbarfontcolor">#444444</navbarfontcolorcustom>
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
<!-- Row 135: progress bar colors as color-choosers. Layout in the "Top of the
page" tab (options.twig slots): progress bar color = COLUMN 1, progress