Dark themes for GTK and QT5 applications

In this tutorial I will explain how to install a nice dark theme.

QT5 and GTK are used to create the graphical user interface for applications. They each have their own appearance, depending on the theme and symbols installed.

So installing a dark GTK theme doesn't change the look of QT5 applications like VLC and QBittorrent.

To create a more consistent look and feel for applications, we'd like both gtk and qt5 to use a dark theme.

We installed the package gtk-arc-themes, which contains the theme adwaita-dark.

root: pkg install gtk-arc-themes

Then we create the file ~/.config/gtk-3.0/settings.ini:

nano ~/.config/gtk-3.0/settings.ini =>


Next, we need the ports

Install and we activate the dark theme for qt5-based applications.

We then add the following code to our .xinitrc-this is needed for the qt5ct program which we can use to configure which theme qt5 applications use.

nano ~/.xinitrc =>


Now we need to restart the computer. If we open the qt5ct program before restarting, the variable will not be recorded and we will not be able to change the subject.

After the restart, we open the qt5ct program and change the design to the qt5 version of adwaita-dark.

We can open the qt5ct program with an application launcher like dmenu or rofi, when you use it.

We'll use the Appearance tab, the drop-down menu, next to the word style. We'll select Adwaita-Dark, then click Apply.

Adwaita dark settings

Let's go to the Fonts tab and we'll change the font to Sans Serif 10. We click Apply and OK to close qt5ct.

Fonts settings

Now, when we open qt5-based applications like vlc and qbittorrent, the Adwaita Dark theme is used just like gtk applications.

VLC in Darkmode