feat(options): remove the Colors tab from the options page
The Colors category tab is no longer rendered. Its only remaining options (sliderhandlecolor, privacybackgroundcolor; the other Colors keys already live in Top of the page) stay defined in config.xml and keep their stored values, but are not rendered until they are placed on another tab. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
1ddfb4c7b4
commit
eed9f7e34c
1 changed files with 5 additions and 1 deletions
|
|
@ -184,7 +184,11 @@
|
|||
{% endif %}
|
||||
{% set aTabs = aTabs|merge([{ 'id': 'top-of-page', 'label': 'Top of the page', 'category': 'Top of the page', 'keys': aTopOfPageKeys }]) %}
|
||||
{% for category in aOptionAttributes.categories %}
|
||||
{% if category != 'Fonts' and category != 'Top of the page' %}
|
||||
{% if category != 'Fonts' and category != 'Top of the page' and category != 'Colors' %}
|
||||
{# 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
|
||||
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)
|
||||
moved to the Top-of-page tab, so an empty tab must not be rendered. #}
|
||||
|
|
|
|||
Loading…
Reference in a new issue