Closed jhenstridge closed 1 week ago
I think it's still better to revert just that commit since otherwise we'd miss various other fixes around.
However i feel it's more a snap issue than yaru, as I think yaru should still track upstream content while the snap can handle the retro-incompatibilities.
Also this is another good reason why gtk-common-themes
should be versioned (depending on the core one is targetting).
Also this is another good reason why
gtk-common-themes
should be versioned (depending on the core one is targetting).
+1 on this
Also this is another good reason why
gtk-common-themes
should be versioned (depending on the core one is targetting).
I'm not sure how that would help. If we could build the content snap once and abandon it, that might work. But if new releases add new accent colours, we would need to go back and add them to the old content snap in order for snapped applications to be themed correctly.
If we need to update all those snaps on essentially the same schedule, it's not clear having separate snaps will simplify things.
I do agree that Yaru should be able to evolve with new Ubuntu releases. The best option might be to build two versions of Yaru and ship the GTK4 theme from the old release alongside the GTK4 theme from the new one: e.g. share/themes/Yaru/gtk-4.15
for the new one and share/themes/Yaru/gtk-4.0
for the old one. GTK will pick the newest version less than or equal to its version number.
On the Yaru side, this would require:
We've been preparing a new release of the gtk-common-themes snap that ships the most recent Yaru release in order to support the new accent colours shipped with Ubuntu 24.10. This means that the theme is being used with slightly older versions of GTK than would be seen outside of the snap sandbox.
Expected Behavior
Yaru should work with GTK 4.14.4, as shipped in the gnome-46-2404 snap.
Actual Behavior
The application spits out a bunch of warnings like:
and some colours are not applied.
Steps to Reproduce the Problem
sudo snap refresh --candidate gtk-common-themes
pingpath
Software that presents the issue
The
pingpath
snap exhibits the problem.Yaru version
Yaru 24.10.4 as shipped in revision 1537 of the gtk-common-themes snap, which is currently published to the candidate channel.
Possible fixes
The problem appears to be the use of CSS relative colors in 86549dd1, which requires GTK >= 4.15.2 (released on 28th June). It looks like the older
alpha()
andshade()
functions continue to work in current GTK releases, so reverting that commit might be enough.Alternatively, the new accent colours could be back-ported to Yaru 24.04, and we ship that in gtk-common-themes. That might be the easier option if you don't want to deal with old GTK version compatibility.