Guide: Xfce global dark mode in Qubes 4.0 / 4.1

Sorry, not a Fedora user.

I installed qgnomeplatform and it works. But maybe there is a simpler solution.

1 Like

Is there a workflow for a dark mode (themes, icons) for Debian 12?

I wouldn’t expect any of this to have changed significantly between Debian 10,11 and 12. And I’d give a try to the instructions at the end of the guide (direct link that wasn’t a direct link, my mistake, but there is a table of contents!).

If you find those to work to your satisfaction, it may be worth updating the guide to mention Debian 12, or to remove the numbers and leave only Debian :slightly_smiling_face:

If you are referring to Nautilus being broken, it’s because it doesn’t use standard GTK themes in Gnome 44.

It always uses the gtk.css from ~/.config/gtk-4.0

You can overwrite ~/.config/gtk-4.0/gtk.css with the 4.0 css file from the theme you want to use, at least that worked for me.

This file with:

/* QUBES BEGIN */
/* Do not modify text until end marker, it will get overriden on update */
/* See https://github.com/QubesOS/qubes-issues/issues/8081#issuecomment-1473412028 */

header :stuck_out_tongue: ?

Do you know another way to apply themes to nautilus?

You can add the qubes specific changes to the end of the theme, and it’s likely to overwrite any conflicting changes done by the theme.

Also it looks like QT workaround is broken in Debian 12 somehow. It not apply to KeepassXC. Also it looks like it scaling down fonts in nautilus.

Any idea about keepasxc in debian-12?

Damn… just found that I need to use View → Theme → Classic (Platform-native) from the menu…

I have Fedora based AppVMs and I followed the process of this guide, but:

  1. Upon installing gnome-tweaks there was a popup saying:
    “extentions has moved. extensions management has been moved to gnome extensions. we recommend downloading gnome extensions from flathub if your distibution does not include it”
    Also, I don’t have that option “Appearance > Applications”, instead, I have “Appearance > Legacy Applications”, and switching it to Adwaita dark didn’t apply a dark theme on the files browser.

Is there an up-to-date guide to apply dark theme for the AppVMs?

What works for me on Q4.1 for both Fedora- and Debian-based AppVMs is:
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"

Execute this in the templates as well as all AppVMs (and DVM-templates to have the effect persist in DVMs).
I did not have to install any software, such as gnome-tweaks (though the package does seem to be installed by default in the standard debian-12 template).

2 Likes

On xfce-flavor templates and AppVMs / DVM templates my above suggestion doesn’t seem to work, but the following does:
xfconf-query -c xsettings -p /Net/ThemeName -s "Adwaita-dark"

1 Like

The first solution by the OP for dark mode doesn’t work in the whonix VMs. But I have found a fix which also works in Debian 12 of which the following is unnecessary because all you have to do select appearance->Adwaita-dark which is very straightforward. For the Whonix VM’s on 4.2.2 I found an easy solution. You have to do the following first in the Template VMs of the gateway and workstation.
Install the package below:

$sudo apt install gnome-themes-extra

Note: gnome-themes-standard was deprecated and the new package is gnome-themes-extra.
Open thunar file manager and select view → Show Hidden files
Create a file called gtk.css in the following path
Create the necessary folders as in the path if it doesn’t exist:

/home/user/.config/gtk-3.0/gtk.css

Type the following code in the file gtk.css:

@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained-dark.css");

Restart
Done!