Conversation
…nsense-dark" depending browser settings, inspired by #9916 It's a bit of an experiment, but since its so small, it shouldn't be an issue to push this to master. The trick is actually pretty simple, symlink the relevant directories in build to the standard opnsense theme and add a theme.js override to handle the logic.
|
@AdSchellevis Sorry I didn't reply earlier. For reasons that I have yet to understand the GUI collapses entirely to unformatted text. Even though this happens to multiple VMs, I am sure you have tested it so I am probably doing something wrong. |
|
@sopex no problem, you can test this easily using the following steps: |
Cool, my bad. I was doing make upgrade and probably something didn't want to cooperate. My only concern with your implementation is that the flashing white before the dark-theme is loaded becomes annoying quickly. Recording.2026-03-30.220735.mp4 |
|
@sopex didn't this PR have a similar issue? The link replacement is quite similar to yours as far as I can see. |
|
@AdSchellevis PS. The opnsense logo not going to the dashboard in the video is irrelevant to this PR (an https remnant), Recording.2026-03-30.231907.mp4 |
|
we'll leave it on master for now, there's probably something small we can do to ease the process, not sure what yet without adding too much glue code. |
|
Great! I am keeping this open too for a little while. Hopefully you won't need it. |
…nsense-dark" depending browser settings, inspired by opnsense#9916 It's a bit of an experiment, but since its so small, it shouldn't be an issue to push this to master. The trick is actually pretty simple, symlink the relevant directories in build to the standard opnsense theme and add a theme.js override to handle the logic.
Closes: #8264
Closes: #9805
In my testing, it works great!
Let me know of any ideas for improvement.