I have dark mode working on chrome's internal pages in Windows 10. Is it not implemented in the Ubuntu version?
I'm using chrome version 75.0. My theme is
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
On my system, I have the dark mode active:
I need to do two things:
google-chrome-stable --enable-features=WebUIDarkMode --force-dark-modeand
Use Classic, not GTK+ in chrome://settings/?search=themes
Unfortunately, not all internal pages are themed. Opening many of the urls in chrome://chrome-urls/ will confirm that. It's not clear if or when they'll ever get round to that!
Note: as of chrome Version 78.0.3904.87 (Official Build) (64-bit) you can easliy turn chrome's internal pages to dark mode,its under chrome flags by default
chrome://flagsin the url
Force Dark Mode for Web Contentsjust enable it and relaunch chrome.
for those who don't have the above option under flags To enable dark mode on Ubuntu, you need to edit the
If you use GNOME desktop, simply run the command below which opens up the required file in editable format. If not, open the file in a text editor of your choice
sudo -H gedit /usr/share/applications/google-chrome.desktop
All you have to do is search for two lines and add a dark mode flag in front of them.
and replace it with:
Exec=/usr/bin/google-chrome-stable %U --force-dark-mode
and add the dark mode flag after it like this:
Once you have done these changes, simply try restarting chrome. If that doesn't work, rebooting your Ubuntu system should do the job.
For me rebooting my Ubuntu 18.04 system worked. Also note that if you update the chrome app, the changes will be gone, since the file will be overwritten.
I made a script for it, just run:
bash -c "$(curl -fsSL "https://raw.githubusercontent.com/felipecassiors/dotfiles/master/scripts/enable_chrome_dark_mode.sh")"
We will: - Create the file '/home/felipesantos/.local/share/applications/google-chrome.desktop' Do you confirm? (Yy)y All done. Please make sure you fully close Google Chrome before opening a new instance. To uninstall, run: $ rm -f /home/felipesantos/.local/share/applications/google-chrome.desktop
It currently uses the method described by DK Bose's answer, but I might change in the future if it stops working. Basically, it:
There is no need to change Chrome's theme in my tests tough.
I would highly recommend installing Dark Reader which intelligently scans the CSS of the page to keep background dark and adjust foreground colors accordingly. Here is a snippet showing dark reader in action
An alternative way to emulate dark mode is here.
You can choose a theme and use that very easily to get Chrome dark.