Here’s my container or iframe for multiple plugin or link
...
<div id="chatIframe4" style="width: 100%; height: 100%; overflow: auto; zoom: 0.55; border-radius: 0.25rem;" hidden>[image(settings.galleryOptions)]</div>
...
Only the [
would be stuck in initial load in color scheme; the ][or private gallery
would sync with the gen theme toggle. ] ; [settings.introMessage] ; perchance uploader
Before this I use long src url methods and it could have theme updated too!!
What’s the trick here?
You can force the gallery color scheme:
function updateColorSchemeButton() { let colorScheme = document.documentElement.style.colorScheme; ... settings.galleryOptions.forceColorScheme = colorScheme; update(galleryContentEl); // update the container that holds the gallery }
0.0
Thanks! But it works, only briefly, in a test attempt yesterday😅
I don’t know what magically things happened but it won’t work anymore.
I even tried dumb methods like
update(document.getElementById("chatIframe4"));
maybe because there’s no galleryContentEl in the side panel code?
the other main gallery using galleryContentEl got theme updated correctly.
So… is there still a problem or are you just confirming that it works?
If there is a problem, on my end it seems to work correctly, even the ‘open gallery’ from the generated image.
Sorry, I was saying if I wasn’t imagining things up then it once would work.
But now it wound not work anymore; the side panel gallery in my gen would still be stuck in loadin color theme. Confirmed by different devices /browsers.