![]() ![]() Select the Dark Theme option to toggle the setting between Off and. Dark Mode OffiDocs Chromium to be run free as Chrome web store extension. As an example, here's how my old icon looked (not enough contrast). To access the Dark Theme setting in ChromeOS, click on the shelf where the battery status, time and Wi-Fi indicator display. Dark Reader is an amazing plugin but it started glitching yesterday and now. Which is why in my comments above I mentioned I had been avoiding using a content_script.Īlso, I think it makes sense to use the version of your icons that work best on light-mode as your default, because I think the chrome extension page will pull from these for some of the icons they use (and that page has a white background). Dark Reader is a browser extension for Google Chrome, Firefox, and Safari that allows users to apply a dark theme to webpages they visit. The only downside I see is that this requires a content_script, which if you want your extension to work on any page, requires you to also add "matches": to your extension, which slows down the approval process. This effectively overrides my original icon paths as declared in the manifest.json file (as shown below). Then in my background.js file I listen for that message, and if request.scheme = "dark" I use to change the paths for each of my icons to the dark version. Then I added the following to toggleIcon.js - which sends scheme: "dark" to my background.js file if window.matchMedia matches prefers-color-scheme: dark. ![]() You can enable dark mode on every single website, so if you're using Chrome on an OLED display, you can save some battery while also. ![]() Thanks to wOxxOm I was able to figure this out.įirst, I needed to create a content script (which I called toggleIcon.js) and add it to the manifist.json file. Dark Reader is an extension that does exactly that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |