aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-01-31 16:44:56 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-01-31 16:44:56 +0100
commit5714e2fbae7d8b6f69adc3ae064cded2bb8c35d7 (patch)
tree32fb9ff66f9bdbf01a0632a18de538574e8f63d6 /src/webview
parentFix lint (diff)
downloadferdium-app-5714e2fbae7d8b6f69adc3ae064cded2bb8c35d7.tar.gz
ferdium-app-5714e2fbae7d8b6f69adc3ae064cded2bb8c35d7.tar.zst
ferdium-app-5714e2fbae7d8b6f69adc3ae064cded2bb8c35d7.zip
Add better sync between Ferdi and service dark mode
Diffstat (limited to 'src/webview')
-rw-r--r--src/webview/recipe.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js
index 8ea2fabd9..4e2f5233a 100644
--- a/src/webview/recipe.js
+++ b/src/webview/recipe.js
@@ -127,8 +127,13 @@ class RecipeController {
127 } 127 }
128 } 128 }
129 129
130 console.log('Set theme to: ', this.settings.service.isDarkModeEnabled ? 'Dark' : 'Light'); 130 console.log(
131 if (this.settings.service.isDarkModeEnabled) { 131 'Darkmode enabled?',
132 this.settings.service.isDarkModeEnabled,
133 'Dark theme active?',
134 this.settings.app.isDarkThemeActive
135 );
136 if (this.settings.service.isDarkModeEnabled && this.settings.app.isDarkThemeActive !== false) {
132 debug('Enable dark mode'); 137 debug('Enable dark mode');
133 138
134 // Check if recipe has a darkmode.css 139 // Check if recipe has a darkmode.css