mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-11 04:37:54 +02:00
Invert background_color theme logic
This commit is contained in:
@@ -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",
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user