This commit is contained in:
Aevann1 2022-01-28 00:08:41 +02:00
parent a16c4b37a9
commit fa1f6a337a
5 changed files with 199 additions and 4 deletions

View file

@ -329,7 +329,7 @@ def settings_profile_post(v):
theme = request.values.get("theme")
if theme:
if theme in ["dramblr","classic","transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"]:
if theme in ["dramblr","classic","classic_dark","transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"]:
if theme == "transparent" and not v.background:
return {"error": "You need to set a background to use the transparent theme!"}
v.theme = theme