[Request] - theme switch to match OS/browser light/dark settings

Started by RutgerDiehard, July 25, 2025, 03:27:24 PM

Previous topic - Next topic
I have OPNsense continuously open in a tab in my browser and regularly check logs, Zenarmor live sessions and dive in for general tweaking.

I also have my OS theme change depending on the time of day; dark at night, light during the day. Generally, all my sites will follow suite such as Facebook, Unifi, Portainer etc. etc. It would be awesome if OPNsense was able to follow the OS or browser theme automatically.

I imagine it would work by choosing a "Light" theme in Settings -> General and an opposing "Dark" theme. A toggle button would then allow "Automatic" adjustment based on system settings.

For me, this would complete an otherwise excellent product. Would love to hear others thoughts on this.

It's probably not impossible, but it would require being able to load themes in JS for this to work. The UI is loaded first. I wonder how it could check what the browser has set and then go back to the file system and change the files. Certainly not on the priority list.


Cheers,
Franco