The issue is the way we were theming Qt apps on Gnome was with the QGnomePlatform project, which is sadly no longer being maintained: GitHub - FedoraQt/QGnomePlatform: QPlatformTheme for a better Qt application inclusion in GNOME
The packages have already been removed from the Arch repos. They are still in the AUR, and if you install them that way it would be an easy fix for your issue:
paru -S qgnomeplatform-qt5-git qgnomeplatform-qt6-git
However, installing unmaintained packages from the AUR is not recommended and it is not likely to be something that will work in the long term unless development of the project resumes.
Moving forward–or at least for now–we are going to switch to using Kvantum to theme Qt apps on Gnome. It has some limitations, but Gnome doesn’t have a lot of options anymore and Kvantum seems like it’s better than nothing.
If you don’t have it installed yet, you can pull it down with Pacman:
sudo pacman -S kvantum
Kvantum has a bunch of built-in themes you can use, or you can install this one which is meant to match the Libadwaita style (it’s reasonably close): GitHub - GabePoel/KvLibadwaita: Libadwaita style theme for Kvantum. Based on Colloid-kde.
You will have to set a few environment variables to get Kvantum theming to work:
sudo micro /etc/profile.d/environment.sh
#!/bin/bash
# If it's a Wayland session, set some environment variables.
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
export QT_QPA_PLATFORM=wayland
export MOZ_ENABLE_WAYLAND=1
fi
# Set some other environment variables
export QT_STYLE_OVERRIDE=kvantum
Save and exit, then make the script executable:
sudo chmod +x /etc/profile.d/environment.sh
Log out, log back in, and you should be good to go setting up Kvantum. Run kvantummanager
from the command line to launch the application to get your new theme set up. Run it with sudo
to configure a theme for root applications if you’d like.
Some of the root applications need their .desktop
files modified to launch from the menu if you are running Wayland, by the way. You may have noticed that if you tried to launch one of them (it doesn’t do anything). There are some changes coming down soon to fix that, but in the meanwhile you can edit the .desktop
file yourself if you want to to get them working (it’s just one line per file):
sudo micro /usr/share/applications/garuda-boot-options.desktop
Change the Exec=
line to this:
Exec=/usr/lib/garuda/pkexec-gui garuda-boot-options
You can do the same thing to fix Garuda Network Assistant if you wish.
pkexec-gui
won’t use the Kvantum theme by default unfortunately. There is a change in the works to fix that, but until it comes down you’d have to add the change manually if you want root apps to honor your theme when you launch them with pkexec-gui
.
sudo micro /usr/lib/garuda/pkexec-gui
#!/bin/bash
# Elevate
if [[ $EUID -ne 0 ]]; then
exec pkexec /usr/lib/garuda/pkexec-gui "$@"
exit 1
fi
# Restore some variables from parent process
while IFS= read -rd '' var; do export "$var"; done < <(grep --null-data -ae "^\(XDG_CURRENT_DESKTOP\|WAYLAND_DISPLAY\|XDG_RUNTIME_DIR\|XDG_SESSION_TYPE\|XCURSOR_SIZE\|LC_.*\|LANG\|LANGUAGE\|QT_WAYLAND_FORCE_DPI\|QT_STYLE_OVERRIDE\|\)=.*\$" /proc/$PPID/environ)
if [[ -v WAYLAND_DISPLAY ]]; then
export WAYLAND_DISPLAY="$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY/$QT_STYLE_OVERRIDE"
fi
export XDG_RUNTIME_DIR="/run/user/0"
exec "$@"
This may be more hacking around than you bargained for, but like I mentioned a lot of changes have come down so Gnome is basically a work in progress at the moment. Also, Gnome 45 is coming out soon and who knows what will happen then. More big changes are planned, so no sense reinventing the wheel for now.
I would say just set up a Kvantum theme you can live with for now (let us know if you find a good one) and probably we’ll take a closer look at Gnome after the dust settles following the 45 release.