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.
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
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.
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.
TL;DR, this is great work, but a lot of things need to be done manually.
is there a well thought solution that can change the basic themes to the dark and back automatically?
Instead, for people like me who work on the computer around the clock, a light theme is required in the daytime, and a dark theme at night. I think this could be triggered from dom0. It is ok to wait a few minutes for the script to change all themes in all VMs one by one.
across all available VMs, run this for light theme
gsettings set org.gnome.desktop.interface gtk-theme “Adwaita”
this for dark
gsettings set org.gnome.desktop.interface gtk-theme “Adwaita-dark”
I’ve figured out some details towards a scripting workaround. Some specifics are per KDE.
create a global theme switcher that runs on dom0 that will
switch to dark/light wallpaper (i prefer plain color)
change dom0 terminal’s color scheme at runtime
get a list of running vms and change their gnome theme
some hints for dark.sh:
lookandfeeltool -a org.kde.breezedark.desktop
ln -sf $HOME/.config/alacritty/tokyo-night.yaml $HOME/.config/alacritty/alacritty-theme.yaml
for i in `./get-all-running-vms.sh `; do ./change-dark.sh $i; done