master
Aevann1 2021-08-15 05:05:10 +02:00
parent 93141c3df4
commit d47550195a
1 changed files with 2 additions and 1 deletions

View File

@ -140,8 +140,9 @@ def settings_profile_post(v):
theme = request.values.get("theme") theme = request.values.get("theme")
if theme: if theme:
v.theme = theme v.theme = theme
if theme == "coffee": v.themecolor = "38a169" if theme == "coffee" or theme == "4chan": v.themecolor = "38a169"
elif theme == "tron": v.themecolor = "80ffff" elif theme == "tron": v.themecolor = "80ffff"
elif theme == "win98": v.themecolor = "30409f"
g.db.add(v) g.db.add(v)
return "", 204 return "", 204