Skip to content

GTK4/LibAdwaita theme suddently stoped to work #235

@impromptux

Description

@impromptux

First, thank you for this theme, I have used it on my computer since a long time and I really like it.

I have an issue with GTK4 apps using LibAdwaita:
Previously, it was possible to use Arc as a theme for these apps that use LibAdwaita like that:

ln -s ~/.themes/Arc/gtk-4.0/gtk.css ~/.config/gtk-4.0/gtk.css
ln -s ~/.themes/Arc/gtk-4.0/gtk-dark.css ~/.config/gtk-4.0/gtk-dark.css
ln -s ~/.themes/Arc/gtk-4.0/assets ~/.config/gtk-4.0/assets
#For Flatpaks:
flatpak override --filesystem=$HOME/.themes:ro --user
flatpak override --filesystem=$HOME/.config/gtk-4.0:ro --user
flatpak override --env GTK_THEME=Arc --user

This worked very well unlike other themes that I tested wich were buggy with LibAdwaita. LibAdwaita apps installed with system's package manager did not use Arc but I thought it was a bug caused by the packagers or something like that. As all the LibAdwaita apps that I use were available as Flatpaks I didn’t try to figure it out.
Recently, I updated all my Flatpaks, and suddenly all LibAdwaita apps became transparent and unusable:

(app:2): Gtk-WARNING **: 19:18:14.522: Theme parser error: gtk.css:1:1-69: Failed to import: La ressource dans « /org/gnome/arc-theme/gtk-main-lighter.css » n’existe pas

(app:2): Gtk-WARNING **: 19:18:18.387: Theme parser error: gtk.css:1:1-69: Failed to import: La ressource dans « /org/gnome/arc-theme/gtk-main-lighter.css » n’existe pas

(app:2): Gtk-WARNING **: 19:18:18.430: Theme parser error: gtk.css:1:1-69: Failed to import: La ressource dans « /org/gnome/arc-theme/gtk-main-lighter.css » n’existe pas

(it is in french as it is my native language and it can be translated in something like: The resource in /org/gnome/arc-theme/gtk-main-lighter.css does not exist.)

It seems that new version of LibAdwaita break support for .gresource files as other theme that doesn’t use it like Materia still work. This bug only occurs for LibAdwaita apps (like GNOME Podcasts), not for GTK4 without LibAdwaita apps like Geary.

(Sorry for my poor English. As I said previously, I am French)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions