feat(options): color-chooser option texts with live hexcodes, default bold
Row 131: the navbarfontcolor dropdown entries now read exactly "Default font color", "Default background color", "Color 1", "Color 2", "Color 3", "Other ..." (config.xml options/optionlabels/dropdownoptions renamed from "Same as default font color" / "Other…"). options.js appends each entry's chosen hexcode in brackets — presets from their color option fields, "Other ..." from the custom picker's value (navbarfontcolorcustom) — and the entry marked data-default="1" stays bold via a real <b> (row 129) plus CSS. Rendered list example: bold "Default font color [#444444]", "Default background color [#ffffff]", "Color 1 [#5e1c64]", ..., "Other ... [#444444]". OPTIONS_JS_TOKEN -> 20261126.10. Verified: render tc=603 (raw option texts match the list), jsdom 6/6 incl. new pins (exact label texts, hex on "Other ..." and "Default background color" entries, <b> only on default), export exit 0. Variants not rebuilt (deferred). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
f26ee734d4
commit
1a60918630
1 changed files with 17 additions and 10 deletions
18
config.xml
18
config.xml
|
|
@ -222,19 +222,23 @@
|
|||
own default value — the element text below IS that default (LimeSurvey
|
||||
stores it in the DB on theme reset), and the <option data-default="1">
|
||||
marks it so the options page can show it in BOLD (options.twig CSS +
|
||||
options.js swatch label). Here the default is "default" ("Same as
|
||||
default font color"); e.g. when questiontitlebackgroundcolor is later
|
||||
converted to this pattern, its default can be set to "color1". -->
|
||||
<navbarfontcolor type="dropdown" category="Colors" width="12" title="Menu item color in header" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Same as default font color|Default background color|Color 1|Color 2|Color 3|Other…">default
|
||||
options.js swatch label). Here the default is "default" ("Default font
|
||||
color"); e.g. when questiontitlebackgroundcolor is later converted to
|
||||
this pattern, its default can be set to "color1".
|
||||
ROW 131: the option TEXTS are exactly "Default font color",
|
||||
"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
|
||||
<dropdownoptions>
|
||||
<option value="default" data-default="1">Same as default font color</option>
|
||||
<option value="default" data-default="1">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">Other…</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 menu item color (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>
|
||||
<progressbarbackgroundcolor type="colorpicker" category="Colors" width="12" title="Progress bar background color" options="on|off" optionlabels="Yes|No">#eeeeee</progressbarbackgroundcolor>
|
||||
<progressbarcolor type="colorpicker" category="Colors" width="12" title="Progress bar color" options="on|off" optionlabels="Yes|No">#5e1c64</progressbarcolor>
|
||||
|
|
|
|||
Loading…
Reference in a new issue