In Fedora Kinoite, Flatpak GTK3 apps do not follow the dark theme

I have only been using Fedora Kinoite 41 a short time after rebasing from Silverblue, and the biggest issue I have is that Flatpak apps that use GTK3 – for me that means gVim and Geany – do not follow the Breeze Dark theme.

Changing the icons “works,” because when selecting the dark icons, they pretty much disappear, so I have to use the “light” icons so they will show up on the GTK apps.

GTK4 apps are fine – they look like Adiwaita Dark, just like in Silverblue.

It’s only GTK3 apps that have this problem.

If I layer the apps, they follow the dark theme with no issue. It’s just the Flatpak apps.

Does anybody have a fix, or is there a bug that has been filed?

Maybe this thread is related, but I didn’t find anything there to help resolve the issue:

As mentioned in the other thread, you’ll need to use Flathub flatpaks, rather than Fedora.

What is

gsettings get org.gnome.desktop.interface gtk-theme

?

1 Like

I am using Flatpaks from Flathub.

Here is my output on that command:

$ gsettings get org.gnome.desktop.interface gtk-theme
'Breeze'

See https://github.com/flathub/org.gtk.Gtk3theme.Breeze#workarounds

1 Like

That did not work.

I imagine you do have the theme installed from Flathub.

I am using Silverblue, so for me the legacy theme that integrates well with Adwaita is adw-gtk3, and in order to have the same theme and color scheme across all apps from all sources, I had to both layer it and install as Flatpak (runtime) too.

Given that the dark version/scheme of the theme is considered a different theme (and in case of the adw-gtk3 Flatpak also a different package: adw-gtk3-dark), one would need to change the theme as well.

This is the command needed to turn on dark color scheme and dark version of the gtk-theme:

gsettings set org.gnome.desktop.interface gtk-theme "adw-gtk3-dark" ;\
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"

I imagine Breeze also has a dark scheme. GNOME Tweaks (layered) might reveal the name of it.

This didn’t work. I’m already getting GTK3 apps to follow the dark theme when I layer them. But Flatpak GTK3 apps don’t change with any of these commands.

I personally didnt have to install any theme or package and GTK3 apps are dark

They may need access to a directory in the user home

Something like xdg-config/gtk-3?

Try adding this global override file

cat ~/.local/share/flatpak/overrides/global <<EOF
[default]
filesystems=xdg-config/gtk-3:ro
EOF

https://github.com/hamza-Algohary/How-to-apply-gtk3-themes-on-flatpak-apps

1 Like

Fedora Flatpaks recently gained extension support. Which means they are now able to package GTK themes. They have Breeze and adw-gtk3.

2 Likes