From eed9f7e34c2e14b46df196da6c7047abf2e3a5b3 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Wed, 25 Nov 2026 19:27:37 +0100 Subject: [PATCH] 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 --- options/options.twig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/options/options.twig b/options/options.twig index 6ea2312..c803e53 100644 --- a/options/options.twig +++ b/options/options.twig @@ -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. #}