Ubuntu – How to (quickly) switch to dark mode in Ubuntu with GNOME and to make it fully dark

gtkthemesubuntu-gnome

Is there a way to (quickly) turn on a dark mode in Ubuntu with GNOME, e.g. 18.04 and higher? And how is possible to have a dark mode of the different apps?
I agree with this article: Ubuntu Needs to Make it Easier to Enable Dark Mode (OMG! Ubuntu)

There are some answers for Ubuntu with Unity but they are not helpful for Ubuntu with GNOME:
How can you enable GTK3 themes' dark theme mode when using Unity 7? – Ask Ubuntu
Is there any fast switch between light mode and dark mode (light/dark theme) in 16.04? – Ask Ubuntu

Best Answer

For easy and quick toggling from Dark to Light theme and vice versa install this GNOME extension:

Invert the color of individual windows only (Default shortcut is Super+I): use the Globe Extension Invert Window Color. Thank you Sam!

Ubuntu 20.04: You can now easily choose a dark mode within the Settings: Appearance > Window colors > Dark. There is no possibility to set a time to have an automatic switch based on time, though (without a GNOME extension, see above).

For a Full Dark Mode of the system (incl. System tray menu, top-bar calendar, notification popups, and desktop context menu) you need some more steps:

  1. Install GNOME Tweaks and other tools if you don't have them, then reboot/restart. In a terminal:
    sudo apt install -y chrome-gnome-shell # Works with Firefox*, too.
    sudo apt install -y gnome-shell-extensions 
    sudo apt install -y gnome-tweak-tool 

(*) Firefox add-on for GNOME Shell integration in Firefox.
2. Install user themes GNOME Shell extension:
https://extensions.gnome.org/extension/19/user-themes/
3. Turn on user themes GNOME extension in GNOME Tweaks or in the GNOME extensions app.
4. Log out and back in to your session OR manually restart GNOME Shell (Alt + F2, type r, hit enter) for the theming extension to actually be activated.
5. Launch GNOME Tweaks and navigate to Appearance in the left pane, choose Yaru-dark as the Shell theme! More details and source: [How to Enable Dark Gnome Shell Menus, Calendar in Ubuntu 20.04 | UbuntuHandbook]

But the Dark Theme Toggle does not make some of the apps fully dark and you have to do some further configuration:

LibreOffice: (adapted from Debugpoint.com)

  1. Open LibreOffice. Open any component – Writer, Calc etc.
  2. From menu, click Tools -> Options.
  3. Go to Application Colours, select document background as Black. You can also choose the Application background as Black.
    There may be more custom color settings you like to adapt. For example, Remove the gray background from Table Of Contents: Modify the color setting in Text Document, ☑ Index and table shadings. (Or disable it: ☐ Index and table shadings.)
  4. Some special formatting, e.g. links were not shown well on my computer, I chose a lighter colour for the unvisited and visited links.
  5. If you would like to change to a dark icon theme, change it from "View" options on the left side for better visibility of the toolbar icons, e.g. choose "Breeze (dark) as icon style.

There is a also a dark theme to install: RaitaroH/LibreOffice-BreezeDark: Icons, color palette and color scheme for LibreOffice

Firefox:
Enable Dark Mode in Firefox, see HowToGeek for details.

  • Click menu > Add-ons > Themes, choose Dark theme.

To view the webpages in dark colours, use an add-on. Two tested options:

  1. Dark Reader:
  • Handy keyboard short-cut to toggle: Shift-Alt-D
  • It promises that "it does not show ads and doesn't send user's data anywhere. It is fully open-source."
  • It may cause more CPU use, though.
  1. Dark Background and Light Text
    Before you install disable similar extensions.
    Handy keyboard short-cut to toggle: F9

PDF viewer (e.g. Evince document viewer): See Is there any pdf viewer with dark mode? - Ask Ubuntu
Go to the options on the top right corner (Sandwich menu). Then select Night Mode or Inverted colours.

Wire messenger (How to install Wire messenger on Ubuntu):
Go to preferences, then Options, choose dark theme.

Thunderbird
With TB 78+ you can choose a dark theme (open add-on page and choose themes on the left side).
Apart from that there are some dark theme add-ons with more tweaks.

Audacity:
The theme to use can be selected at Edit > Preferences > Interface
You can also change the colour of the waves without selecting a theme.
And more sophisticated (source: OMG!Ubuntu):

  1. Download the Audacity Clean Dark Theme pack
  2. Extract the .zip
  3. Copy ImageCache.png from the named colour folder you want
  4. Paste file into ~.audacity-data/Theme (if the directory doesn’t exist, create it)
  5. Open Audacity > Preferences > Interface
  6. Select ‘Custom’ theme option

Calibre: See How do I get a dark theme/night mode in Calibre? - Ask Ubuntu