OPNsense Forum

English Forums => 25.7 Series => Topic started by: RutgerDiehard on July 25, 2025, 03:27:24 PM

Title: [Request] - theme switch to match OS/browser light/dark settings
Post by: RutgerDiehard on July 25, 2025, 03:27:24 PM
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.
Title: Re: [Request] - theme switch to match OS/browser light/dark settings
Post by: franco on July 25, 2025, 03:34:52 PM
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
Title: Re: [Request] - theme switch to match OS/browser light/dark settings
Post by: sopex8260 on July 25, 2025, 05:38:56 PM
There is some interest, but probably too complicated to be worth it.

https://github.com/opnsense/core/issues/8264