diff options
author | vantezzen <hello@vantezzen.io> | 2019-10-16 11:06:27 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-10-16 11:06:27 +0200 |
commit | a56408ad7531c1f5e552f926a88cc4540d805b85 (patch) | |
tree | b2b544c5b8deec837df7499c04aaa419246a912a /src/webview | |
parent | Add custom CSS for darkmode to fix WhatsApp and Threema QR codes (diff) | |
download | ferdium-app-a56408ad7531c1f5e552f926a88cc4540d805b85.tar.gz ferdium-app-a56408ad7531c1f5e552f926a88cc4540d805b85.tar.zst ferdium-app-a56408ad7531c1f5e552f926a88cc4540d805b85.zip |
Add button to directly open darkmode.css
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/darkmode/custom.js | 4 | ||||
-rw-r--r-- | src/webview/recipe.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/webview/darkmode/custom.js b/src/webview/darkmode/custom.js index 4b2b89fb2..f767f5755 100644 --- a/src/webview/darkmode/custom.js +++ b/src/webview/darkmode/custom.js | |||
@@ -1,5 +1,5 @@ | |||
1 | // CSS for pages that need custom styles to work correctly in darkmode | 1 | // CSS for pages that need custom styles to work correctly in darkmode |
2 | export default { | 2 | export default { |
3 | 'web.whatsapp.com': ` | 3 | 'web.whatsapp.com': ` |
4 | div.landing-window > div.landing-main { | 4 | div.landing-window > div.landing-main { |
5 | background-color: #FFFFFF !important; | 5 | background-color: #FFFFFF !important; |
@@ -18,5 +18,5 @@ export default { | |||
18 | .scan input.md-input { | 18 | .scan input.md-input { |
19 | color: #212121; | 19 | color: #212121; |
20 | } | 20 | } |
21 | ` | 21 | `, |
22 | }; | 22 | }; |
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 854cbce58..6068e6c4a 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -117,7 +117,7 @@ class RecipeController { | |||
117 | this.cldIdentifier.destroy(); | 117 | this.cldIdentifier.destroy(); |
118 | } | 118 | } |
119 | } | 119 | } |
120 | 120 | ||
121 | if (this.settings.service.isDarkModeEnabled || this.settings.app.darkMode) { | 121 | if (this.settings.service.isDarkModeEnabled || this.settings.app.darkMode) { |
122 | debug('Enable dark mode'); | 122 | debug('Enable dark mode'); |
123 | 123 | ||
@@ -130,7 +130,7 @@ class RecipeController { | |||
130 | } else if (!ignoreList.includes(window.location.host)) { | 130 | } else if (!ignoreList.includes(window.location.host)) { |
131 | // Use darkreader instead | 131 | // Use darkreader instead |
132 | enableDarkMode({}, { | 132 | enableDarkMode({}, { |
133 | css: customDarkModeCss[window.location.host] || '' | 133 | css: customDarkModeCss[window.location.host] || '', |
134 | }); | 134 | }); |
135 | } | 135 | } |
136 | } else { | 136 | } else { |