mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-11 12:47:54 +02:00
Invert background_color theme logic
This commit is contained in:
@@ -17,7 +17,7 @@ class MetadataViewTestCase(TestCase):
|
|||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"scope": "/",
|
"scope": "/",
|
||||||
"theme_color": "#5856e0",
|
"theme_color": "#5856e0",
|
||||||
"background_color": "#161822",
|
"background_color": "#ffffff",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/static/logo.svg",
|
"src": "/static/logo.svg",
|
||||||
@@ -114,7 +114,7 @@ class MetadataViewTestCase(TestCase):
|
|||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"scope": "/linkding/",
|
"scope": "/linkding/",
|
||||||
"theme_color": "#5856e0",
|
"theme_color": "#5856e0",
|
||||||
"background_color": "#161822",
|
"background_color": "#ffffff",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/linkding/static/logo.svg",
|
"src": "/linkding/static/logo.svg",
|
||||||
|
@@ -11,7 +11,7 @@ def manifest(request):
|
|||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"scope": "/" + settings.LD_CONTEXT_PATH,
|
"scope": "/" + settings.LD_CONTEXT_PATH,
|
||||||
"theme_color": "#5856e0",
|
"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": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/" + settings.LD_CONTEXT_PATH + "static/logo.svg",
|
"src": "/" + settings.LD_CONTEXT_PATH + "static/logo.svg",
|
||||||
|
Reference in New Issue
Block a user