GTK4 4.20.1 Update Causing New Theming Issues

Hi! I am using the most recent version of KDE on Wayland. Can’t figure out how to add multiple categories, so sorry for that.

I’ve been having a big problem for GTK4 applications such as handbrake, czkawka, etc. after updating glib2, gtk4, basically all the dependencies for GTK4. The UI of applications built with GTK4 has completely changed and no longer has pink text/font like I like. Nor does it have any other details from my theme. Handbrake, for some reason, actually uses the system titlebar, unlike czkawka. I have no idea what is going on, it’s a mess. It does not match my theme at all anymore. How can I fix this, if possible? Picture attached of handbrake for reference.

GNOME’s GTK4 (and libadwaita) is meant for you to follow.

They make breaking changes all the time.

You either like adwaita and eat whatever they give you .. or you avoid it.

If you absolutely must use GTK4 and value customization then you might get slightly better results from libadwaita-without-adwaita (AUR).

This seemingly does nothing after installing it. The UI is still the same. I restarted to check as well, still nothing. I am pretty sure handbrake and czkawka do not use libadwaita, though I could be wrong.

They both depend on gtk4 which in depends-on/uses libadwaita and the assorted related things. They are intrinsically linked. And as mentioned .. well .. see for example this thread;

et al ..

Sorry, for these kinds of reasons I avoid GNOME and their latest GTK/adwaita (gtk3 is present).
You wanting to do your own ‘styling’ will always be an uphill battle with GNOME/GTK4.
Maybe someone else will have a better idea or maybe a new workaround will pop up after the latest changes (and then you can repeat this process again in some weeks or months with diminishing returns :sweat_smile:).

1 Like

Yeah, I tried setting themes, but no matter what, I can NOT get ANY colors to actually show even though they are set in the actual file they’re supposed to be!!! ~/.config/gtk-4.0 AND /usr/share/themes/Breeze-Dark/gtk-4.0! There is no way it is this bad. Like I just want to change the color of the text and I will be fine. Are you actually serious?

I am seriously considering just reverting gtk-4 and its dependencies back, uncaring if it causes damage.

Update: Using GTK-Inspector, it seems like GTK4 breaks themes because it does not support just defining colors anymore? You now need 4000 lines of CSS to get something like this, and it still most certainly isn’t perfect. This is handbrake.

This is czkawka with the same theme.

Slight problem, however. How on Earth do I make it use a different icon theme upon starting a new window? I can change it with GTK Inspector, but putting it in settings.ini does absolutely nothing and neither does the GTK_ICON_THEME environment variable.

Funny thing is, according to gsettings, I am using the theme I want, apparently. Even though I know I am not.

image

1 Like

Reading this, I’m glad that I give up on unification look on gtk4 apps. I think I only use one gtk4 app, Easyeffects.

The developers of Cinnamon use a soft fork of libadwaita called libadapta, which supports theming: https://github.com/xapp-project/libadapta. However, I have no idea how complicated it would be to switch the GTK4 apps over. I checked the package info, and it does not include a Provides setting for libadwaita.

Not applicable, unfortunately.

And of course, now there are a thousand GTK errors with default themes. GTK4 sucks.