Guide: Xfce global dark mode in Qubes 4.0 / 4.1

Will I have to use gnome-tweaks for fedora, or is there another way as for debian?

This has nothing to do with Fedora vs Debian but whether an xsettings daemon is installed. I don’t have a full Fedora or Debian template installed currently – so I can’t easily check, but if memory serves me right they have xsettingsd installed by default. In that case you can either uninstall said daemon and use the file based approach or you have to use gnome-tweaks.

The way I usually check for a settings daemon is ps aux | grep settings.

Just tried to install gnome-tweaks in VM, change the theme and it look like the configs persist somewhere while gnome-tweaks and all dependencies gone after reboot of VM. I think using minimal template will be my next step. Now I just transitioned from debian into fedora for sys vms.

Does anyone know how to do a “Dark theme” for Fedora 36?
It is driving me crazy with old legacy app’s being dark and Fedora 36 app’s being bright white.

I just installed gnome tweaks in the VM set theme to dark (default dark adwaita since I’m not installing anything in the template). Reboot VM and have all apps apart from QT dark, and no tweaks and it’s dependencies installed. For minimal just use ~/.config/gtk-3.0/settings.ini and ~/.gtkrc-2.0 and it also work.

For my fedora-36-minimal’s nautilus this doesn’t work. Any idea?

How do you guys deal with the blinding white flash that various programs produce when creating new windows or tabs? Some examples of when this sometimes happens:

  • Starting Firefox, Thunderbird, or Chrom[e|ium]
  • Opening a new tab in Firefox or Chrom[e|ium]
  • Loading new pages and refreshing the current page in Firefox and Chrom[e|ium]
  • Opening a new reply window in Thunderbird.

Some of these still happen even when using every possible dark mode option + Dark Reader + Dark New Tab (though these do help somewhat). From what I can tell, this has been an unsolved problem as far back as 15+ years now. Every few years, I’m tempted to try implementing a global dark theme again only to run into this problem again. At least if I use the default global light themes everywhere, I don’t get blinded by these inevitable white flashes. I’d guess that trying to use dark themes and getting occasionally blinded is worse for one’s eyes than just consistently using light themes with low blue light. It’s also a lot less of a hassle, since trying to use global dark themes feels like playing whack-a-mole as it seems like there’s always some new thing cropping up that doesn’t automatically follow the global theme and doesn’t come with its own dark theme option.

I use the standard xfce, and I don’t remember seeing white flashes when starting apps.

I use Nordic-darker for both windows manager and desktop in dom0, and Memories (different dark theme) in appVMs.

edit: I see what you mean now. I also get it with Thunderbird, but it’s very fast, I don’t get it with Brave.

I know it’s coming, so I close my eyes for a second.

I too am interested in a more sophisticated method. :wink:

I do. Same (short) duration as with Betterbird/Thunderbird.

Strange, this doesn’t seem to change anything for me in Debian 11 minimal. I was able to follow all other steps, so everything in the VM is correctly dark themed except for LibreOffice. I wonder if any of these might explain my lack of expected results:

  • I used --no-install-recommends when installing libreoffice-kf5
  • I don’t have the entire libreoffice base installed, just libreoffice-calc and libreoffice-writer

FWIW, I was able to darken Thunderbird without extensions on Debian 11 minimal by doing the following:

  1. Edit > Settings > Add-ons and Themes > Themes > Enable “Dark.”
  2. Edit > Settings > General > Language & Appearance > Fonts & Colors > Colors… > Uncheck “Use system colors,” set “Text” to a light color, and set “Background” to a dark color.
  3. View > Message Body As > Select either “Plain Text” or “Simple HTML.”

Everything should be dark-themed now.


For Chrom[e|ium] users, there is now an experimental flag that allows you to force global dark mode across all arbitrary web page contents without any extensions:

  1. In the address bar, navigate to chrome://flags.
  2. In the search bar, enter “dark.”
  3. Next to “Auto Dark Mode for Web Contents,” select “Enabled with selective inversion of non-image elements” (or your desired choice).
  4. Relaunch.

This seems to remove some of the flicker or white flashes that I still occasionally experienced with the “Dark Reader” extension.

If you still have a light theme in Chrom[e|ium] itself at the top where the tabs are:

  1. Follow the general OS dark theme steps already described in the OP of this thread.
  2. Settings > Appearance > Theme > Select “Use GTK+.”

If you enabled dark mode correctly for the VM, then using GTK+ will also apply it to Chrom[e|ium] itself.

I was able to fix this by adding SAL_USE_VCLPLUGIN=kf5 to /etc/environment in the template.

1 Like

Another tip I came across: With a dark theme in LibreOffice, some of the toolbar icons become illegible, but installing libreoffice-style-breeze fixes this by replacing the icons with nicer ones that work well with the dark theme.

1 Like

Bump?

Sorry, not have any wiser answer then “it works for me”. But… I just use gtk-application-prefer-dark-theme=1 and nothing else for minimals since I just want them to be dark, without installing anything unnecessary in them.

1 Like

How does one do this?

Example:

  1. Open a terminal emulator in dom0.
  2. Type sudo vim /etc/environment. Press Enter.
  3. Press i.
  4. Type QT_QPA_PLATFORMTHEME=gtk2.
  5. Press Escape.
  6. Type :x. Press Enter.
1 Like

I’m a few months late, but since I don’t think this ever got addressed here:

Open a terminal in your AppVM and type:
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
(That’ll sort out libreoffice, nautilus/files and standard gnome apps like calculator.)

1 Like

Edit: Thanks @Fom for the tip. Now I see that you’re responding on Nautilus issue which doesn’t need to install any extra package. Great!