This commit is contained in:
Aevann1 2022-04-23 00:07:58 +02:00
parent 07d1c10cc5
commit 6de5cc7264
14 changed files with 43 additions and 708 deletions

View file

@ -289,7 +289,7 @@ def settings_profile_post(v):
theme = request.values.get("theme")
if theme:
if theme in {"dramblr", "reddit", "reddit_dark", "classic", "classic_dark", "transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"}:
if theme in {"dramblr", "reddit", "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