Dark Mode not working in 20.04

I upgraded from 18.04 to 20.04 and tried to enable dark mode but this is not working.

ubuntu dark mode enabled

Dark mode not working

Here is one more weird thing I noted. I am running Ubuntu 20.04 but this message shows 18.04. ubuntu 18.04 error on 20.04

Update: This command solved the problem. sudo apt-get install yaru-theme-gtk


As listed in comments from the question, I did install Yaru:

sudo apt-get install yaru-theme-gtk

Then I selected the dark theme from Settings > Appearance and it worked.

I obtained a similar yet different result by installing gnome-tweak-tool and selecting the "Ambiance" theme.

Cheers!


Try using the Gnome-Tweak tool. First, update, then add the Universe repository, and then install:

sudo apt-get update
sudo add-apt-repository universe
sudo apt-get install gnome-tweak-tool

Open Gnome-Tweaks from Show Applications (or Activities), and click on Appearance. Under Themes, dropdown Applications, and choose Adwaita-dark, or, as the case may be, Yaru-dark.

Hope it helps!