Invert background_color theme logic

This commit is contained in:
Hugo van Rijswijk 2024-03-16 14:39:43 +01:00
parent 4f96a8b449
commit 0a2f7443ad
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ class MetadataViewTestCase(TestCase):
"display": "standalone",
"scope": "/",
"theme_color": "#5856e0",
"background_color": "#161822",
"background_color": "#ffffff",
"icons": [
{
"src": "/static/logo.svg",
@ -114,7 +114,7 @@ class MetadataViewTestCase(TestCase):
"display": "standalone",
"scope": "/linkding/",
"theme_color": "#5856e0",
"background_color": "#161822",
"background_color": "#ffffff",
"icons": [
{
"src": "/linkding/static/logo.svg",

View file

@ -11,7 +11,7 @@ def manifest(request):
"display": "standalone",
"scope": "/" + settings.LD_CONTEXT_PATH,
"theme_color": "#5856e0",
"background_color": "#ffffff" if request.user_profile.theme == "light" else "#161822",
"background_color": "#161822" if request.user_profile.theme == "dark" else "#ffffff",
"icons": [
{
"src": "/" + settings.LD_CONTEXT_PATH + "static/logo.svg",