Dark theme on whonix-workstation QT apps

My goal is to enable dark theme on whonix-workstation for QT apps.

On Debian VM i was able to install qt5-style-kvantum, select a theme and that was it, its working.

On whonix-workstation however, the theme simply does not apply.

What I did:

  1. sudo apt install qt5-style-kvantum

  2. Launch kanvtummanager

  3. Select a theme, click use this theme

  4. Open KeepassXC, its still light theme.

I know KeepassXC has a built in dark theme, my goal is to set the default theme to dark like on the Debian VM.

I checked the debug info of KeepassXC app, QT version is 5.15.8

Another thing i tried:

  1. sudo apt install qt5ct

  2. sudo nano /etc/environment

Add those lines:

QT_QPA_PLATFORMTHEME=qt5ct
QT_STYLE_OVERRIDE=kvantum
  1. Launch qt5ct, configure it to use the dark theme
  2. Launch KeepassXC, still light

Any pointer to the right direction is appreciated.

1 Like

Solution found.

sudo qubes-dom0-update adwaita-qt5

More info can be found here: