diff --git a/app/filter.py b/app/filter.py index 8f457f3..b37ede4 100644 --- a/app/filter.py +++ b/app/filter.py @@ -153,7 +153,7 @@ class Filter: if src.startswith(LOGO_URL): # Re-brand with Whoogle logo - element.replace_with(BeautifulSoup(render_template('logo.html'))) + element.replace_with(BeautifulSoup(render_template('logo.html', dark=self.dark))) return elif src.startswith(GOOG_IMG) or GOOG_STATIC in src: element['src'] = BLANK_B64 diff --git a/app/routes.py b/app/routes.py index 3ae805e..ff915ca 100644 --- a/app/routes.py +++ b/app/routes.py @@ -128,7 +128,7 @@ def index(): countries=app.config['COUNTRIES'], logo=render_template( 'logo.html', - config=g.user_config), + dark=g.user_config.dark), config=g.user_config, tor_available=int(os.environ.get('TOR_AVAILABLE')), version_number=app.config['VERSION_NUMBER']) @@ -227,7 +227,7 @@ def search(): search_header=(render_template( 'header.html', config=g.user_config, - logo=render_template('logo.html'), + logo=render_template('logo.html', dark=g.user_config.dark), query=urlparse.unquote(query), search_type=search_util.search_type, mobile=g.user_request.mobile) diff --git a/app/templates/logo.html b/app/templates/logo.html index bbd99b6..d1f4c4b 100644 --- a/app/templates/logo.html +++ b/app/templates/logo.html @@ -2,7 +2,7 @@