feat(options): rebuild Page background tab layout; overall background color becomes a color chooser
Page background tab (config.xml "Images" category), new layout: - full-width h2 "Page background (behind the body of the page)" + intro text "Set the page background here. Either just a solid color or an image." - three columns: col 1 = Overall background color + custom picker, an in-column hr, then Background image on/off; col 2 = background image file / fixed-or-scroll / display, hidden as a whole column when the image is off (the column itself carries option-visibility on backgroundimage); col 3 empty - full-width hr, then the image upload facility full width with the same scope-dependent help text as in the Top of the page tab bodybackgroundcolor is now a color-chooser dropdown (modes default| defaultbackgroundcolor|color1|color2|color3|other) with a bodybackgroundcolorcustom child; its default is "Default background color". Added to aColorChooserKeys in options.twig/options.js and to the legacy-hex migration in variants/build.php; custom_header.twig resolves the mode via the cm() macro (raw hex still passes through). OPTIONS_JS_TOKEN -> 20261126.19. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
efa2cf53f3
commit
7bf5437596
1 changed files with 78 additions and 16 deletions
|
|
@ -27,7 +27,7 @@ var ThemeOptions = function () {
|
|||
var legacyColorValues = {};
|
||||
// row 135: all options that use the color-chooser scheme (mode dropdown with
|
||||
// class selector_color_mode + swatch chips + a <key>custom colorpicker child)
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor'];
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor'];
|
||||
// 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