feat(options): Questions tab 'Question title and body' section with 6-way color choosers (row 178 plan P2)
config.xml: new section keys questiontitlefont/textcolor(+custom)/fontsize/ fontoptions + legacy fontcolor (col 1), questiontitlebackgroundcolor(+custom) (col 2), questionbackgroundcolor(+custom) (col 3); old width-12 Prompt-U keys and plain colorpickers replaced; questiontitlefontweight -> questiontitlefontoptions. options.twig: title section slots (were prepared in P1), 3 keys join aColorChooserKeys, OPTIONS_JS_TOKEN 20261129.1. options.js: same 3 keys in its aColorChooserKeys. Views: choosers resolved via cm() (chooser wins; legacy hex and primary/secondary modes pass through; legacy picker used when the mode key is absent); fontoptions mapped to weight/style with legacy fontweight fallback. build.php: chooser migration list + questiontitle fontweight migration. All 3 variants rebuilt (defensie legacy hex -> other+custom), example config synced. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
c4ec304dd0
commit
14eb1c2a99
1 changed files with 214 additions and 92 deletions
|
|
@ -31,8 +31,11 @@ var ThemeOptions = function () {
|
|||
var legacyModeValues = {};
|
||||
// row 135: all options that use the color-chooser scheme (mode dropdown with
|
||||
// class selector_color_mode + swatch chips + a <key>custom colorpicker child);
|
||||
// row 157: the group title/description text colors joined the scheme
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor'];
|
||||
// row 157: the group title/description text colors joined the scheme;
|
||||
// row 180 / plan P2: the Questions "title" section keys as well
|
||||
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor).
|
||||
// Must stay in sync with aColorChooserKeys in options/options.twig.
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor'];
|
||||
// the 5 presets, in the SAME order as the dropdown options in config.xml
|
||||
// (object key order = swatch chip order) — row 125: "Default background color"
|
||||
// is the SECOND choice, right after "Default font color".
|
||||
|
|
|
|||
Loading…
Reference in a new issue