httpjamesm / AnonymousOverflow

View StackOverflow in privacy and without the clutter.
https://code.whatever.social
Mozilla Public License 2.0
236 stars 21 forks source link

Restore the theme switcher button or add a theme environment variable support #140

Open kibirisu opened 1 week ago

kibirisu commented 1 week ago

In the last builds the theme switcher was hidden from the ui.

Why is this feature important?

Since I'm using hardened user.js for Firefox (and many people do also), I'm stuck with the white theme with no option to change this. I'm selfhosting many services so that I just set an env variable. Nowadays, a popular solution is to use three variant theme switcher (auto, white, dark), which I might suggest.

httpjamesm commented 1 week ago

The main reason I removed the toggle was because of caching conflicts. By turning theme determination over to the client, servers can effectively cache assets without weird visual issues.

Your idea for a global theme environment variable sounds good.