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
|
|
@ -778,8 +778,11 @@ var ThemeOptions = function () {
|
|||
if (!op.data('base-label')) { op.data('base-label', op.text()); }
|
||||
var base = String(op.data('base-label'));
|
||||
var pk = presets[mode];
|
||||
if (pk) {
|
||||
var c = currentColor(pk);
|
||||
// row 131: every entry shows its chosen hexcode — the preset colors
|
||||
// from their option fields, "Other ..." from the custom picker's value
|
||||
var c = pk ? currentColor(pk)
|
||||
: (mode === 'other' && customInput.length && /^#[0-9a-fA-F]{3,8}$/.test(String(customInput.val() || '')) ? String(customInput.val()) : '');
|
||||
if (pk || mode === 'other') {
|
||||
var label = c ? base + ' [' + c + ']' : base;
|
||||
if (op.attr('data-default')) {
|
||||
// row 129: the DEFAULT choice is bold — via a real <b> element
|
||||
|
|
|
|||
Loading…
Reference in a new issue