diff --git a/app/routes.py b/app/routes.py index 7a4f4d2..c4f184f 100644 --- a/app/routes.py +++ b/app/routes.py @@ -61,9 +61,8 @@ def unknown_page(e): @app.route('/', methods=['GET']) @auth_required def index(): - bg = '#000' if g.user_config.dark else '#fff' return render_template('index.html', - bg=bg, + dark_mode=g.user_config.dark, ua=g.user_request.modified_user_agent, languages=Config.LANGUAGES, countries=Config.COUNTRIES, diff --git a/app/templates/index.html b/app/templates/index.html index ab46526..b4edf12 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -25,7 +25,7 @@ Whoogle Search - +
@@ -107,7 +107,10 @@