Guide: Xfce global dark mode in Qubes 4.0 / 4.1

Szewcu wrote:

First thing that for QT You probably don’t need gtk2-engines-murrine , and gnome-themes-standard.

And that observation is based on what … the name?

If you intend to have your QT apps look like your Gnome/Gtk apps you need to set QT_QPA_PLATFORMTHEME=gtk2. This “gtk2” is a QT style installed through qt5-qtstyleplugins along with some other QT styles. This particular one however will attempt to apply whatever Gnome theme you have configured to your QT apps and it relies on resources in gtk2-engines-murrine and gnome-themes-standard to do so.

But also I want to ask If there is a possibility to change gnome them to other then Adwaita-dark?

Well yes. I used to use it with Ambiance and now with Yaru-dark. As I already documented in another thread some dark themes do not work well in XFCE:

These work (as far as dark themes are concerned):

  • Adwaita-dark
  • Arc-Dark
  • Arc-Dark-solid
  • Greybird-dark
  • Xfce-dusk

These don’t:

  • Arc-Darker
  • Arc-Darker-solid

I tried to install Arc-Dark which I prefere and setting it instead of Adwaita but it looks like it is not applied for most of the programs.

Which programs?

For Qt programs you need to follow the guide including the two packages mentioned above. For all other programs including the XFCE panel I have observed that it sometimes is necessary to set ~/.gtkrc-2.0 and ~/.config/gtk-3.0/settings.ini in addition and with the same settings as selected in the XFCE settings app. I don’t know why that is. It worked for a long time just by setting it in XFCE but recently it just stopped and I had to set the other to files too.

1 Like