Merge pull request 'Theme is set to "Auto" when no theme is selected.' (#170) from meyagci/teddit:main into main

Reviewed-on: https://codeberg.org/teddit/teddit/pulls/170
This commit is contained in:
teddit 2021-03-27 15:24:56 +01:00
commit e6fd980ca9

View File

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