Just upgraded to Fedora 41, and it seems that certain apps (I believe they’re all X11 apps) no longer respects the “Legacy Applications” theme option in Gnome Tweaks. As you can see in the image, VSCode’s title bar is white (which follows the system theme) instead of the “Legacy Applications” theme in Gnome Tweaks. In Fedora 40, VSCode follows the “Legacy Applications” theme correctly (setting Legacy Applications to Adwaita-dark causes VSCode, Discord, etc’s title bar to be dark).
I wanted my system theme to be in light mode, but apps like Discord and VSCode looks better in dark mode than light mode.
So what I ended up doing is that I set my system theme to light mode and I set the Legacy Applications theme to Adwaita-dark. In Fedora 39 and Fedora 40, this workaround, for the most part, got me what I wanted - certain apps I’m used to being in dark mode showed the correct dark title bar. Unfortunately, in Fedora 41 (GNOME 47), X11 applications no longer respect this legacy theme option. I suspect this only happens to X11 apps, since launching VSCode using code --ozone-platform=wayland .
launches VSCode correctly with the correct title bar theme.
But of course, this is just a workaround. Ideally, I’m trying to find a way to launch let’s say launch certain specific apps like VSCode, Discord, etc. in dark mode, while keeping all other apps in light mode. In other words, I’d like to be able to set certain applications to dark mode while having my system theme set to light mode.
After reading a bunch, I saw that you can use the GDK_THEME environment variable. Unfortunately, I’ve tried setting the environment variable GDK_THEME=Adwaita:dark and this doesn’t seem to work.
Anyone have any suggestions?
There’s really 2 approaches I can think of and either approach is okay: either somehow getting dark theme to work on a per application basis (for X11 apps) or having X11 apps respect the Legacy Applications theme.
Also if it’s helpful, I’m running Fedora 41, on Wayland, with NVIDIA PRIME (proprietary drivers).