From 85baf70235cac247f6a7e54f0cbc80161aa5ad9f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 30 Dec 2021 17:20:09 +0200 Subject: [PATCH] sfd --- files/routes/settings.py | 2 ++ files/templates/settings_profile.html | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index d68236770..0d3c496cb 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -364,6 +364,8 @@ def settings_profile_post(v): theme = request.values.get("theme") if theme: + if theme == "transparent" and not v.background: + return render_template(f"{template}settings_profile.html", v=v, error="You need to set a background to use the transparent theme!") v.theme = theme if theme == "win98": v.themecolor = "30409f" updated = True diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 2bd89a147..505385714 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -111,12 +111,7 @@

Change the theme for the website.