working nord/whoogle light mode
This commit is contained in:
parent
ab0547ad13
commit
eb809a1608
|
@ -39,12 +39,9 @@ class Filter:
|
||||||
"""
|
"""
|
||||||
contents = ""
|
contents = ""
|
||||||
if self.theme:
|
if self.theme:
|
||||||
if self.dark:
|
theme_file = f'app/static/css/themes/{self.theme}.css'
|
||||||
theme_file = f'app/static/css/themes/{self.theme}-dark.css'
|
|
||||||
else:
|
|
||||||
theme_file = f'app/static/css/themes/{self.theme}-light.css'
|
|
||||||
if os.path.exists(theme_file):
|
if os.path.exists(theme_file):
|
||||||
contents = open(f'app/static/css/themes/{self.theme}-dark.css').read()
|
contents = open(theme_file).read()
|
||||||
return contents
|
return contents
|
||||||
|
|
||||||
def parse_theme_colors(self):
|
def parse_theme_colors(self):
|
||||||
|
|
|
@ -39,6 +39,6 @@ footer {
|
||||||
}
|
}
|
||||||
|
|
||||||
.reskin {
|
.reskin {
|
||||||
background-color: #ffffff;
|
background-color: #ECEFF4;
|
||||||
color: #3B4252;
|
color: #3B4252;
|
||||||
}
|
}
|
|
@ -7,8 +7,8 @@
|
||||||
<meta name="referrer" content="no-referrer">
|
<meta name="referrer" content="no-referrer">
|
||||||
<script type="text/javascript" src="/static/js/autocomplete.js"></script>
|
<script type="text/javascript" src="/static/js/autocomplete.js"></script>
|
||||||
{% if theme %}
|
{% if theme %}
|
||||||
<link rel="stylesheet" href="/static/css/themes{{ theme }}.css" />
|
<link rel="stylesheet" href="/static/css/themes/{{ theme }}.css" />
|
||||||
<link rel="stylesheet" href="/static/css/themes{{ theme }}-search.css" />
|
<link rel="stylesheet" href="/static/css/themes/{{ theme }}-search.css" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="stylesheet" href="/static/css/{{ 'dark-' if dark_mode else '' }}theme.css" />
|
<link rel="stylesheet" href="/static/css/{{ 'dark-' if dark_mode else '' }}theme.css" />
|
||||||
<link rel="stylesheet" href="/static/css/{{ 'search-dark' if dark_mode else 'search-light' }}.css">
|
<link rel="stylesheet" href="/static/css/{{ 'search-dark' if dark_mode else 'search-light' }}.css">
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
</body>
|
</body>
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
Whoogle Search v{{ dark_mode }} ||
|
Whoogle Search v{{ version_number }} ||
|
||||||
<a style="color: #685e79" href="https://github.com/benbusby/whoogle-search">View on GitHub</a>
|
<a style="color: #685e79" href="https://github.com/benbusby/whoogle-search">View on GitHub</a>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user