diff --git a/files/routes/settings.py b/files/routes/settings.py index 081228722..b10c66065 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -52,6 +52,7 @@ def settings_profile_post(v): if request.values.get("background", v.background) != v.background: updated = True v.background = request.values.get("background") + v.theme = 'transparent' elif request.values.get("slurreplacer", v.slurreplacer) != v.slurreplacer: updated = True @@ -325,9 +326,7 @@ def settings_profile_post(v): theme = request.values.get("theme") if theme: - 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!"} + if theme in {"dramblr", "classic", "classic_dark", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"}: v.theme = theme if theme == "win98": v.themecolor = "30409f" updated = True diff --git a/files/templates/authforms.html b/files/templates/authforms.html index a93faa902..4cdfa2bf1 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -15,7 +15,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} diff --git a/files/templates/chat.html b/files/templates/chat.html index 176663ea7..9956ccf82 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -14,8 +14,8 @@ Chat - - + + {% if v.css %} {% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index 25da58af2..ee4006421 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -7,8 +7,8 @@ {% if v %} - - + + {% if v.agendaposter %} - - + + {% endif %} {% if sub and sub.css and not request.path.endswith('settings') %} diff --git a/files/templates/log.html b/files/templates/log.html index 4120c7558..5060856b6 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -6,7 +6,7 @@ {% block content %} {% if v %} - + {% if v.agendaposter %} - + {% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html index 4713618cc..e0e212313 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -18,8 +18,8 @@ {% endblock %} - - + + diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html index 5fea89d4a..92a60401b 100644 --- a/files/templates/login_2fa.html +++ b/files/templates/login_2fa.html @@ -14,7 +14,7 @@ 2-Step Login - {{SITE_NAME}} - + diff --git a/files/templates/settings.html b/files/templates/settings.html index df65edac8..c3e06e7a4 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -34,7 +34,7 @@ - + {% if v.agendaposter %} - + {% else %} - + {% endif %} diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index ccb4d2333..d6a5ff1ee 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -115,7 +115,7 @@

Change the theme for the website.