Closed olafgrabienski closed 4 months ago
@olafgrabienski Can you check the latest code to make sure it fixes for your case as well? I was able to replicate and the code I just pushed fixed it for me.
@laryn Thanks for the update! Updating to the latest code didn't fix the site where I noticed the issue (cleared caches several times). However, the same code works as expected on another site where I hadn't installed Gin before.
@olafgrabienski Can you provide any further information about the site that this didn't help on?
@laryn Not sure, I'll have a look in the next days. It's however a general test site and as such not important to fix.
@laryn Today I had another look at my test site. After clearing caches and enabling Gin (I had switched to Seven in the meantime), the "Appearance" modes (Light, Auto, Dark) now work as expected. 🎉
Using the latest code (downloaded yesterday, 8th of July), after installing and enabling Gin as admin theme, the theme gets displayed all the time in dark mode, no matter if the setting is Light, Auto or Dark. The settings get saved (I've checked the configuration file), but the class
gin--dark-mode
keeps staying in the<html>
tag.PS: Switching between Light, Auto and Dark, sometimes the theme appeared for a while in light mode. It changed however back to dark mode when I clicked "Save".