Three particular KDE flatpak apps refuse to use a dark theme when the host system has a GTK-based desktop: Alligator, Tokodon, and Keysmith. The native versions of these apps all use dark mode automatically if the host desktop is set to a dark theme. Other KDE flatpak apps do use the host system’s dark theme, it’s just these three that won’t (of the apps I’ve tried).
I have reproduced the issue on all of the following distros:
Linux Mint Cinnamon 21, flatpak 1.12.7
Ubuntu Gnome 22.04, flatpak 1.12.7
Ubuntu Mate 22.04, flatpak 1.12.7
Fedora Cinnamon 37, flatpak 1.12.7
On Fedora, I was also able to try the rpm versions of the three mentioned apps, and they automatically used the system dark theme: this issue is only present in the flatpak version. None of the relevant apps are in the Ubuntu/Debian deb repositories, so I can’t test them there.
I ran all of the distros mentioned here in a virtual machine, except Mint.
Detailed steps to reproduce:
flatpak install flathub org.kde.alligator org.kde.tokodon org.kde.keysmith
2)Perform the necessary steps to allow QT flatpak apps to use the system theme. This will depend on the desktop enviroment:
2a)In Gnome, install
2b)In Mate or Cinnamon, install
org.kde.KStyle.Adwaita//5.15-21.08 and run
sudo flatpak override --env=QT_STYLE_OVERRIDE=Adwaita-dark.
Expected result: QT-based flatpak apps which can use the system theme automatically switch to dark mode.
Actual result: Most QT-based flatpak apps which can use the system theme automatically switch to dark mode, including VLC, Kate, Dolphin, and KolourPaint. However, the three apps mentioned in the title, Alligator, Tokodon, and Keysmith, continue to use light mode, and there is thus seemingly no way to make them use a dark theme. I don’t know what about these three apps is different from all the other KDE/QT apps I’ve used.
I also tried testing on Kubuntu. All three mentioned flatpaks were able to switch to dark mode when the host system was using breeze dark. So, it only seems to be an issue with GTK-based desktops.