Skip to content

Dear Internet Explorer user: Your browser is no longer supported

Please switch to a modern browser such as Microsoft Edge, Mozilla Firefox or Google Chrome to view this website's content.

Dark Theme in WSL2

Implement a “dark theme” for GUI apps in Windows Subsystem for Linux (WSL2)

To enact a “dark theme” in Ubuntu 22.04, I installed GNOME Tweaks:

sudo apt install gnome-tweaks

Then I configured the following settings:

gsettings set org.gnome.shell.ubuntu color-scheme prefer-dark
gsettings set org.gnome.desktop.interface gtk-theme Yaru-dark
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
gsettings reset org.gnome.shell.ubuntu color-scheme

Graphical apps such as Nautilus and Firefox were then displayed with a “dark theme”.

Screen capture of file manager utility in Linux Ubuntu 22.04
Nautilus with Dark Theme enabled in Windows Subsystem for Linux (WSL2) Ubuntu 22.04
   

Comments

2 responses to “Dark Theme in WSL2”

On 14 January 2024, rnd22x wrote: Hyperlink chain icon

Got an error in Ubuntu WSL2:
rnd22x@DESKTOP-2KLAXDX:~$ (process:46887): dconf-WARNING **: 18:27:31.451: failed to commit changes to dconf: Could not connect: No such file or directory

Reply

On 14 January 2024, rnd22x wrote: Hyperlink chain icon

After:
> gsettings set org.gnome.shell.ubuntu color-scheme prefer-dark
Got an error:
failed to commit changes to dconf: Could not connect: No such file or directory

Reply

Have Your Say

The following HTML is permitted:
<a href="" title=""> <b> <blockquote cite=""> <code> <em> <i> <q cite=""> <strike> <strong>

Comments will be published subject to the Editorial Policy.