From 0a2f7443ad74714870ec5b05dcd4cf410af15d3f Mon Sep 17 00:00:00 2001 From: Hugo van Rijswijk Date: Sat, 16 Mar 2024 14:39:43 +0100 Subject: [PATCH] Invert background_color theme logic --- bookmarks/tests/test_metadata_view.py | 4 ++-- bookmarks/views/manifest.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bookmarks/tests/test_metadata_view.py b/bookmarks/tests/test_metadata_view.py index 788a35c..b6318db7 100644 --- a/bookmarks/tests/test_metadata_view.py +++ b/bookmarks/tests/test_metadata_view.py @@ -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", diff --git a/bookmarks/views/manifest.py b/bookmarks/views/manifest.py index a3c9083..42eca5f 100644 --- a/bookmarks/views/manifest.py +++ b/bookmarks/views/manifest.py @@ -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",