diff --git a/config.xml b/config.xml index 0f6ea99..635c740 100644 --- a/config.xml +++ b/config.xml @@ -88,19 +88,19 @@ the json; build.php checks that the key exists. --> - - off - on - 1 - off - enable + off + on + 1 + off + enable - - + - ./files/logo-left.png - 30 - on - on - off - ./files/logo.png - 30 - on - on - off - ./files/logo-right.png - 30 - on - on - off + ./files/logo-left.png + 30 + on + on + off + ./files/logo.png + 30 + on + on + off + ./files/logo-right.png + 30 + on + on + off - on + on - defaultbackgroundcolor + defaultbackgroundcolor @@ -152,10 +152,10 @@ - #ffffff - scroll - tile - ./files/tiledtexture.png + #ffffff + scroll + tile + ./files/tiledtexture.png + - under + under + NOTE (Prompt U + row 159): primarycolor, fontcolor and the new + secondarycolor moved to the "Default fonts and colors" category; + header/navbar/progressbar colors carry category "Top of the page" + directly. What remains here in the Colors category: + sliderhandlecolor + privacybackgroundcolor (no tab in the custom + page yet — final Colors layout = Prompt T, still open). --> - defaultbackgroundcolor + defaultbackgroundcolor @@ -250,7 +250,7 @@ - #ffffff + #ffffff - default + default @@ -284,14 +284,14 @@ - #444444 + #444444 #5e1c64 - color1 + color1 @@ -300,8 +300,8 @@ - #5e1c64 - defaultbackgroundcolor + #5e1c64 + defaultbackgroundcolor @@ -310,8 +310,8 @@ - #eeeeee - default + #eeeeee + default @@ -320,9 +320,9 @@ - #ffffff + #ffffff lightyellow - - + - noto_sans + noto_sans @@ -391,23 +391,23 @@ - - #444444 - 16px + #444444 + 16px - #ffffff - #5e1c64 - #888888 - #dddddd + #ffffff + #5e1c64 + #888888 + #dddddd - base - default + base + default @@ -462,9 +463,9 @@ - #444444 - base - default + #444444 + base + default @@ -473,7 +474,7 @@ - #444444 + #444444 base default @@ -485,10 +486,10 @@ #444444 1.2rem 700 - 2.0rem - bold - 1.2rem - normal + 2.0rem + bold + 1.2rem + normal diff --git a/options/options.twig b/options/options.twig index ecae971..36f52be 100644 --- a/options/options.twig +++ b/options/options.twig @@ -12,17 +12,18 @@ (fontselect = per-element font override: same choices as the base "font" dropdown plus "Same as base font"; see the branch below.) - Tab order: the "Fonts" category tab is FIRST (default font + per-element font - overrides), then the "Top of the page" tab, then the "Page background" tab (the - config.xml "Images" category), then the "Groups" tab (all group-related options - of the "Questions" category), then the other remaining categories, and LAST the - "Other options" tab (the config.xml "Simple options" category). + Tab order: the "Default fonts and colors" category tab is FIRST (default font + + per-element font overrides), then the "Top of the page" tab, then the "Page + background" tab, then the "Groups" tab, then the other remaining categories, + and LAST the "Other options" tab. - Exception: the options that make up the TOP OF THE PAGE (header menu, logos, - header colors, progress bar) are pulled out of their config.xml categories - into a dedicated tab, "Top of the page" (see aTopOfPageKeys below). - Values are stored per option key, so this regrouping does not touch stored - values and needs no theme reset to take effect. + Row 159: the config.xml category names ARE these tab labels, so switching back + to the core options renderer (optionspage=core, which groups by category) shows + the same grouping. The tab ids of the first/last tabs ('category-fonts', + 'category-images', 'category-simple-options') are kept as they were, so stored + tab preferences stay valid. Values are stored per option key, so this + regrouping does not touch stored values and needs no theme reset to take + effect. options/options.js is a copy of the core assets/packages/themeoptions-core/ themeoptions-core.js (patched to also hide .action_hide_on_inherit rows when @@ -295,22 +296,24 @@ {% set aGroupCol1 = ['grouptitlefont', 'grouptitletextcolor', 'grouptitletextcolorcustom', 'grouptitlefontsize', 'grouptitlefontoptions'] %} {% set aGroupCol2 = ['groupdescriptionfont', 'groupdescriptiontextcolor', 'groupdescriptiontextcolorcustom', 'groupdescriptionfontsize', 'groupdescriptionfontoptions'] %} -{# Tab list: FIRST the "Fonts" tab (where the default/base font is chosen and the - per-element font overrides live), then the "Top of the page" tab (keys = - aTopOfPageKeys), then row 147: the "Page background" tab (the config.xml "Images" - category, id kept as 'category-images' so the stored tab preference stays valid), - then the "Groups" tab (keys = aGroupKeys), then one tab per remaining category - from config.xml like the core options page (keys = null: all options of that - category, except the top-of-page and group keys). #} +{# Tab list: FIRST the "Default fonts and colors" tab (where the default/base font + is chosen and the per-element font overrides live), then the "Top of the page" + tab (keys = aTopOfPageKeys), then row 147: the "Page background" tab (the + config.xml "Page background" category, id kept as 'category-images' so the + stored tab preference stays valid), then the "Groups" tab (keys = aGroupKeys), + then one tab per remaining category from config.xml like the core options page + (keys = null: all options of that category). Row 159: config.xml category names + equal these tab labels. #} {% set aTabs = [] %} -{% if 'Fonts' in aOptionAttributes.categories %} - {% set aTabs = [{ 'id': 'category-fonts', 'label': 'Default fonts and colors', 'category': 'Fonts', 'keys': null }] %} +{% if 'Default fonts and colors' in aOptionAttributes.categories %} + {% set aTabs = [{ 'id': 'category-fonts', 'label': 'Default fonts and colors', 'category': 'Default fonts and colors', 'keys': null }] %} {% endif %} {% set aTabs = aTabs|merge([{ 'id': 'top-of-page', 'label': 'Top of the page', 'category': 'Top of the page', 'keys': aTopOfPageKeys }]) %} -{# row 147: "Images" category -> "Page background" tab, directly after Top of the page #} +{# row 147/159: "Page background" category -> the Page background tab, directly after + Top of the page #} {% set aImagesKeys = [] %} {% for key, attr in aOptionAttributes.optionAttributes %} - {% if key != 'ajaxmode' and attr.category == 'Images' and key not in aTopOfPageKeys %} + {% if key != 'ajaxmode' and attr.category == 'Page background' and key not in aTopOfPageKeys %} {% set aImagesKeys = aImagesKeys|merge([key]) %} {% endif %} {% endfor %} @@ -319,17 +322,17 @@ image on/off; col 2 = the three image-detail options; col 3 stays empty #} {% set aImagesPaneKeys = ['bodybackgroundcolor', 'bodybackgroundcolorcustom', 'backgroundimage', 'backgroundimagefile', 'backgroundimagefixed', 'backgroundimagedisplay'] %} {% if aImagesKeys is not empty %} - {% set aTabs = aTabs|merge([{ 'id': 'category-images', 'label': 'Page background', 'category': 'Images', 'keys': aImagesPaneKeys }]) %} + {% set aTabs = aTabs|merge([{ 'id': 'category-images', 'label': 'Page background', 'category': 'Page background', 'keys': aImagesPaneKeys }]) %} {% endif %} -{# row 147/157: dedicated "Groups" tab with all group-related options (aGroupKeys). - category 'Groups' (no config.xml category of that name) so the pane renders the +{# row 147/157/159: dedicated "Groups" tab with all group-related options + (category "Groups" in config.xml, listed in aGroupKeys) so the pane renders the slot layout below instead of the Questions 3-column grid. #} {% set aTabs = aTabs|merge([{ 'id': 'groups', 'label': 'Groups', 'category': 'Groups', 'keys': aGroupKeys }]) %} {% for category in aOptionAttributes.categories %} - {% if category != 'Fonts' and category != 'Top of the page' and category != 'Colors' and category != 'Images' and category != 'Simple options' %} + {% if category != 'Default fonts and colors' and category != 'Top of the page' and category != 'Colors' and category != 'Page background' and category != 'Groups' and category != 'Other options' %} {# The "Colors" tab is removed on purpose. Its only remaining options are - sliderhandlecolor and privacybackgroundcolor (the other Colors keys are - pulled into "Top of the page" via aTopOfPageKeys) — TODO: place these two + sliderhandlecolor and privacybackgroundcolor (the other Colors keys carry + category "Top of the page" now) — TODO: place these two options on another tab. #} {# Resolve this category's keys once and skip the tab entirely when none remain: e.g. "Progress" — its only option (progressbarposition) @@ -345,17 +348,17 @@ {% endif %} {% endif %} {% endfor %} -{# row 148: the "Simple options" category renders as "Other options", LAST in the +{# row 148/159: the "Other options" category renders LAST in the tab row (id kept as 'category-simple-options' so the stored tab preference stays valid) #} {% set aSimpleKeys = [] %} {% for key, attr in aOptionAttributes.optionAttributes %} - {% if key != 'ajaxmode' and attr.category == 'Simple options' and key not in aTopOfPageKeys and key not in aGroupKeys %} + {% if key != 'ajaxmode' and attr.category == 'Other options' and key not in aTopOfPageKeys and key not in aGroupKeys %} {% set aSimpleKeys = aSimpleKeys|merge([key]) %} {% endif %} {% endfor %} {% if aSimpleKeys is not empty %} - {% set aTabs = aTabs|merge([{ 'id': 'category-simple-options', 'label': 'Other options', 'category': 'Simple options', 'keys': null }]) %} + {% set aTabs = aTabs|merge([{ 'id': 'category-simple-options', 'label': 'Other options', 'category': 'Other options', 'keys': null }]) %} {% endif %}