httpjamesm / AnonymousOverflow

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

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

Closed kibirisu closed 4 months ago

kibirisu commented 5 months 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 5 months 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.

kibirisu commented 3 months ago

Thanks for implementing the feature!