Closed joshdavies14 closed 2 years ago
When the user has a system default of dark theme and has 'auto colour theme' enabled, we can do this:
Then, the auto colour theme re-enables. Assuming this is unintended behaviour?
Yeah auto should stay off in that case - https://github.com/UWCS/uwcs-dextre/blob/master/accounts/views.py#L180 should be wrapped in an if statement in this case
Additionally, repeatedly toggling night mode while the 'auto colour theme' is disabled will lead to the site remaining on night mode regardless of what the toggle is set to
Yeah auto should stay off in that case - https://github.com/UWCS/uwcs-dextre/blob/master/accounts/views.py#L180 should be wrapped in an if statement in this case
Linked to this I believe, unless when I try to replicate I am just hitting this issue
Additionally, repeatedly toggling night mode while the 'auto colour theme' is disabled will lead to the site remaining on night mode regardless of what the toggle is set to
Actually, I can't replicate in Firefox but can in Edge, where the issue is above where auto does not stay off if manual dark mode is turned off. Surprisingly the auto theme doesn't seem to re-trigger in Firefox so who knows what's going on.
We have two toggles next to each other - while they do different things (one toggles between light/dark mode, the other toggles auto-chaning theme based on system on/off), can we change what we show when/the flow for disabling auto theme?
Possible suggestions:
We can't just move these toggles to account settings, as not everyone who uses the site has an account. Option 2 above is my preferred option right now - option 1 is a quick fix but still leaves us with two toggles. I don't really like option 3 right now - it's more work to implement compared to both other options, and doesn't remove the current issue. Especially as this website is supposed to be repleaced soon it's probably more work for now than is necessary, in my opinion.