Theme is set to "Auto" when no theme is selected.

This will make the website behave according to user's browser theme
unless they specify otherwise.
This commit is contained in:
meyagci 2021-03-23 16:32:39 +01:00
parent 8e3afb71d9
commit 8a2a1e5cd1
1 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,12 @@ html
.setting
label(for="theme") Theme:
select(id="theme", name="theme")
if(!user_preferences.theme || user_preferences.theme == '')
if(!user_preferences.theme || user_preferences.theme === 'auto')
option(value="auto", selected="selected") Auto
option(value="") White
option(value="dark") Dark
option(value="sepia") Sepia
if(user_preferences.theme == '')
option(value="auto") Auto
option(value="", selected="selected") White
option(value="dark") Dark
@ -47,11 +52,6 @@ html
option(value="") White
option(value="dark") Dark
option(value="sepia", selected="selected") Sepia
if(user_preferences.theme === 'auto')
option(value="auto", selected="selected") Auto
option(value="") White
option(value="dark") Dark
option(value="sepia") Sepia
.setting
label(for="flairs") Show flairs:
if(!user_preferences.flairs || user_preferences.flairs == 'true')