From 365b60a9b4d79dab9fbb6cd16540798b349d6834 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Wed, 25 Nov 2026 08:46:34 +0100 Subject: [PATCH] feat(options): Images tab conditional background-image options with server-side initial visibility (Prompt Q) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config.xml: Images background block reordered to backgroundimage, bodybackgroundcolor, then the three image-detail children (backgroundimagefixed/display/file, all parent="backgroundimage") — the color stays directly below the Yes/No choice, the details only matter when an image is shown. options.twig: the .option-visibility wrapper now gets a server-side d-none at render time when the parent buttons group's current value is not the show-value, so the initial state matches the stored value even before/without options.js; options.js updateVisibilityByParent() keeps toggling on change (idempotent, verified by jsdom test). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- config.xml | 10 +++++++--- options/options.twig | 17 ++++++++++++++++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/config.xml b/config.xml index 231213b..986ce59 100644 --- a/config.xml +++ b/config.xml @@ -126,11 +126,15 @@ on on off + on - scroll - tile - ./files/tiledtexture.png #dddddd + scroll + tile + ./files/tiledtexture.png