Add dark theme #1204
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "superiortheme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1151
How to test?
Install Firefox Developer Edition (up-to-date Firefox and Safari (https://github.com/privacytoolsIO/privacytools.io/pull/1204#issuecomment-524510658) should also be fine):
https://www.mozilla.org/en-US/firefox/developer/
Firefox gets data from operating system to decide if user prefers dark themes, so set it to dark in system settings or execute it like this (Adwaita is included with GTK, so you should have it installed):
White theme:
Dark theme:
Or you can go to
about:config
and add a property namedui.systemUsesDarkTheme
,integer
and set it to1
.Note:
privacy.resistFingerprinting
must be false.After you do that, there is an option to open devtools, go to Style Editor and disable

dark.css
to compare it with regular light version.Screenshot
Deploy preview for privacytools-io ready!
Built with commit
12bb38c6db
https://deploy-preview-1204--privacytools-io.netlify.com
FYI for visitors who don't want to or can't change their OS theme, dark mode can be toggled in the Safari developer console
(on Catalina. Don't know about Mojave support, maybe only in Safari Tech Preview on Mojave?):...and in Firefox I don't know how to do it per-site, but you can update the style used in the browser by going to
about:config
and adding a new propertyui.systemUsesDarkTheme
of integer type with value1
.I don't understand the code though 😃
LGTM 👍🏼