Call for testing: gtk-common-themes (October 2024 update)

We’re preparing a new gtk-common-themes release, and I would appreciate some testing feedback from anyone interested.

The new release can be tested by running the following command:

sudo snap refresh --candidate gtk-common-themes

and you can switch back to the regular release by running:

sudo snap refresh --stable gtk-common-themes

I don’t expect there to be many problems, but it’s been a long time since we last pushed a release, and the snap has been updated to build with modern Snapcraft (it’s now using build-base: core24).

Some things that would be worth checking:

  1. Do any apps fail to apply a theme when they previously did?
  2. Do any particular apps misrender with the new release?
  3. Are there any problems on with particularly old (but supported) distros, or particularly old snaps?

I will note there are a few particular themes where changes are expected:

  • KDE Breeze and friends: these were removed from the snap so they can be published independently. If you are using have the snapd-desktop-integration package installed, you should be prompted to install gtk-theme-breeze and icon-theme-breeze next time you log in.
  • The Elementary theme: Elementary OS renamed their theme a while back (from elementary to a set of io.elementary.stylesheet.* variants), and we’re now shipping the latest version.

If there are no obvious problems, we’ll promote this release to stable.

It works, just some GTK warnings have been added (maybe because it’s not synced with correspondent gtk components)

Output looks like

% /snap/bin/pingpath
/usr/share/libdrm/amdgpu.ids: No such file or directory

% sudo snap refresh --candidate gtk-common-themes
gtk-common-themes (candidate) 0.1-98-gc024603 from Canonical✓ refreshed

% /snap/bin/pingpath
(pingpath:11725): Gtk-WARNING **: 19:10:07.240: Theme parser error: gtk.css:1943:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.241: Theme parser error: gtk.css:2137:20-24: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.241: Theme parser error: gtk.css:2232:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.241: Theme parser error: gtk.css:2233:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.241: Theme parser error: gtk.css:2241:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.241: Theme parser error: gtk.css:2242:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.242: Theme parser error: gtk.css:2716:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.242: Theme parser error: gtk.css:2719:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.242: Theme parser error: gtk.css:2739:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.243: Theme parser error: gtk.css:3444:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.243: Theme parser error: gtk.css:3446:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.243: Theme parser error: gtk.css:3492:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.243: Theme parser error: gtk.css:3494:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.243: Theme parser error: gtk.css:3496:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.243: Theme parser error: gtk.css:3499:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.243: Theme parser error: gtk.css:3501:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.244: Theme parser error: gtk.css:4266:28-32: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.244: Theme parser error: gtk.css:4270:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.244: Theme parser error: gtk.css:4272:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.244: Theme parser error: gtk.css:4273:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.244: Theme parser error: gtk.css:4274:43-47: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.244: Theme parser error: gtk.css:4276:44-48: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.244: Theme parser error: gtk.css:4277:44-48: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.244: Theme parser error: gtk.css:4278:44-48: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.258: Theme parser error: gtk-dark.css:1943:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.259: Theme parser error: gtk-dark.css:2137:20-24: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.259: Theme parser error: gtk-dark.css:2232:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.259: Theme parser error: gtk-dark.css:2233:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.259: Theme parser error: gtk-dark.css:2241:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.259: Theme parser error: gtk-dark.css:2242:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.260: Theme parser error: gtk-dark.css:2716:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.260: Theme parser error: gtk-dark.css:2719:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.260: Theme parser error: gtk-dark.css:2739:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.261: Theme parser error: gtk-dark.css:3444:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.261: Theme parser error: gtk-dark.css:3446:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.261: Theme parser error: gtk-dark.css:3492:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.261: Theme parser error: gtk-dark.css:3494:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.261: Theme parser error: gtk-dark.css:3496:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.261: Theme parser error: gtk-dark.css:3499:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.261: Theme parser error: gtk-dark.css:3501:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.262: Theme parser error: gtk-dark.css:4266:28-32: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.262: Theme parser error: gtk-dark.css:4270:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.262: Theme parser error: gtk-dark.css:4272:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.262: Theme parser error: gtk-dark.css:4273:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.262: Theme parser error: gtk-dark.css:4274:43-47: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.263: Theme parser error: gtk-dark.css:4276:44-48: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.263: Theme parser error: gtk-dark.css:4277:44-48: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.263: Theme parser error: gtk-dark.css:4278:44-48: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.277: Theme parser error: gtk-dark.css:1943:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.278: Theme parser error: gtk-dark.css:2137:20-24: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.278: Theme parser error: gtk-dark.css:2232:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.278: Theme parser error: gtk-dark.css:2233:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.278: Theme parser error: gtk-dark.css:2241:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.278: Theme parser error: gtk-dark.css:2242:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.279: Theme parser error: gtk-dark.css:2716:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.279: Theme parser error: gtk-dark.css:2719:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.279: Theme parser error: gtk-dark.css:2739:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.280: Theme parser error: gtk-dark.css:3444:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.280: Theme parser error: gtk-dark.css:3446:16-20: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.280: Theme parser error: gtk-dark.css:3492:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.280: Theme parser error: gtk-dark.css:3494:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.280: Theme parser error: gtk-dark.css:3496:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.280: Theme parser error: gtk-dark.css:3499:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.280: Theme parser error: gtk-dark.css:3501:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.281: Theme parser error: gtk-dark.css:4266:28-32: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.281: Theme parser error: gtk-dark.css:4270:27-31: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.281: Theme parser error: gtk-dark.css:4272:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.281: Theme parser error: gtk-dark.css:4273:29-33: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.281: Theme parser error: gtk-dark.css:4274:43-47: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.281: Theme parser error: gtk-dark.css:4276:44-48: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.281: Theme parser error: gtk-dark.css:4277:44-48: Expected a number
(pingpath:11725): Gtk-WARNING **: 19:10:07.282: Theme parser error: gtk-dark.css:4278:44-48: Expected a number
/usr/share/libdrm/amdgpu.ids: No such file or directory

% sudo snap refresh --stable gtk-common-themes
gtk-common-themes 0.1-81-g442e511 from Canonical✓ refreshed

% /snap/bin/pingpath
/usr/share/libdrm/amdgpu.ids: No such file or directory

%
1 Like

Thank you for the feedback. What theme are you using when you received this error? If you are unsure, running gtk-query-settings gtk-theme-name should give the answer.

it is a default theme provided by distributive (not sure either by host OS or by snap subsystem)

% lsb_release -d
No LSB modules are available.
Description:    Ubuntu 24.04.1 LTS

% gtk-query-settings gtk-theme-name
                     gtk-theme-name: "Yaru-dark"

% snap run --shell pingpath
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

$ gtk-query-settings gtk-theme-name
Gtk-Message: 11:06:13.160: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
                     gtk-theme-name: "Yaru-dark"

p.s. in my case it’s used a default theme for toggling between light/dark variants, and this toggling works as it supposed to be with both gtk-common-theme versions (just a bit noisy gtk-warnings with a new one)

Okay, I can reproduce it here with the base Yaru theme with slightly different line numbers.

For gtk.css:1954:16-20: Expected a number, we have the following in the gresource file:

    color: rgb(from currentColor r g b / calc(alpha * 0.55)); }

There’s similar for the other line numbers it is complaining about:

        color: rgb(from currentColor r g b / calc(alpha * 0.3));
      background-color: rgb(from #3D3D3D r g b / calc(alpha * 0.4));
      border: 1px solid rgb(from white r g b / calc(alpha * 0.4)); }
    background-color: rgb(from #d4d4d4 r g b / calc(alpha * 0.8));
    border: 1px solid rgb(from white r g b / calc(alpha * 0.8)); }

So this is all CSS Color level 5 syntax that is presumably requires a newer version of GTK 4 than we have in the gnome-46-2404 platform snap. I think the use of the new syntax originates from this change:

1 Like

After updating gtk-common-themes to version 0.1-92-g83a94a1 in Kubuntu 24.10, cursor appearance changed in all snaps. Breeze cursor theme is used. In all snap programs, the cursor turns white. The second problem is that Firefox is now not using the Breeze theme, only adwaita. Package snapd-desktop-integration is not installed in Kubuntu. So, one need to do it and then install gtk-theme-breeze and icon-theme-breeze?

The candidate channel has been updated to revision 1538, which should fix the Yaru CSS issue (thanks to Marco in PR #15). That seems to clear up the warnings from pingpath for me.

1 Like

Thank you, there’s no gtk complains with gtk-common-themes 0.1-100-gefa9863

2 Likes