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
24
config.xml
24
config.xml
|
|
@ -131,10 +131,28 @@
|
|||
(always relevant), then the three image-detail options which are only
|
||||
relevant when a background image is shown (parent="backgroundimage",
|
||||
shown/hidden via .option-visibility in options.twig/options.js).
|
||||
Prompt P: all five width=12 — the Images pane renders them stacked in
|
||||
column 1 of a three-column grid (only that column is used). -->
|
||||
Row 149: the "Page background" pane lays these out in three columns —
|
||||
col 1 = overall background color (chooser) + background image on/off,
|
||||
col 2 = the three image-detail options (hidden as a whole when the
|
||||
image is off), col 3 empty. -->
|
||||
<backgroundimage type="buttons" category="Images" width="12" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
|
||||
<bodybackgroundcolor type="colorpicker" category="Images" width="12" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#ffffff</bodybackgroundcolor>
|
||||
<!-- Row 149: the overall background color is a color-chooser dropdown like the
|
||||
other chooser options (default|defaultbackgroundcolor|color1|color2|color3|
|
||||
other) with a <key>custom colorpicker child; its DEFAULT is the Default
|
||||
background color. A legacy stored hex is migrated client-side to mode
|
||||
"other" + hex into bodybackgroundcolorcustom (options.js), and
|
||||
custom_header.twig resolves the mode via the cm() macro (a raw hex still
|
||||
passes through directly). -->
|
||||
<bodybackgroundcolor type="dropdown" category="Images" width="12" title="Overall background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">defaultbackgroundcolor
|
||||
<dropdownoptions>
|
||||
<option value="default">Default font color</option>
|
||||
<option value="defaultbackgroundcolor" data-default="1">[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>
|
||||
</dropdownoptions></bodybackgroundcolor>
|
||||
<bodybackgroundcolorcustom type="colorpicker" category="Images" width="12" title="Custom overall background color (for 'Other ...')" parent="bodybackgroundcolor">#ffffff</bodybackgroundcolorcustom>
|
||||
<backgroundimagefixed type="buttons" category="Images" width="12" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll" parent="backgroundimage">scroll</backgroundimagefixed>
|
||||
<backgroundimagedisplay type="buttons" category="Images" width="12" title="Background image display" options="tile|cover" optionlabels="Tile|Cover" parent="backgroundimage">tile</backgroundimagedisplay>
|
||||
<backgroundimagefile type="imagefile" category="Images" width="12" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
|
||||
|
|
|
|||
Loading…
Reference in a new issue