-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full color icons missing in default icon theme #2312
Comments
The crucial issue is |
The fallback I added for this is broken. Blueman now skips making an IconInfo object which would return None instead of raising GEerror. |
I don't know how it can do this, I haven't gnome environment or Gnome setting apps.. Btw, after installing gnome-icon-theme package all the errors disappeared. I think this is an obsolete package in Arch, so I need other thoughts, If any.
|
If there's no specific support for it, editing
They came back when uninstalling, I suppose?
Exactly. It's a vital part of GTK as it ships defaults that all themes fall back to. That's why there is no good reason for My first guess would be some kind of broken cache. I'd try Another option could be a broken icon theme, that actually breaks the fallbacks. Not sure if that's possible. |
I don't have files ..../gtk-3.0/settings.ini or ..../gtk-4.0/settings.ini
Yes, exactly.
$ ls -1d /usr/share/icons/* | tee /dev/tty | xargs -I {} sudo gtk-update-icon-cache -f {}
/usr/share/icons/Adwaita/
/usr/share/icons/default/
/usr/share/icons/hicolor/
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully. Didn't help again. So it's just a distribution issue on Arch? |
A simple test for a import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
Gtk.IconTheme.get_default().load_surface("audio-card", 48, 1, None, Gtk.IconLookupFlags.FORCE_SIZE) This is basically what blueman does, except that it gets the scale factor from GTK, so that it could be something else than 1 (typically 2) and it passes a window. I expect this to always work as Adwaita ships a scalable Just to double check:
|
Yes: $ cat /usr/share/icons/default/index.theme
[Icon Theme]
Inherits=Adwaita And test output is: $ python test.py
Traceback (most recent call last):
File "/home/nebulosa/test.py", line 4, in <module>
Gtk.IconTheme.get_default().load_surface("audio-card", 48, 1, None, Gtk.IconLookupFlags.FORCE_SIZE)
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'audio-card' not present in theme Adwaita (0) |
Might be best to file a bug with the adwaita-icon-theme Arch package to get behind that. From my understanding, there is no way for it to not provide the icon. The path is basically:
=> |
$ grep -A5 "\[symbolic/devices\]" /usr/share/icons/Adwaita/index.theme
[symbolic/devices]
Context=Devices
Size=16
MinSize=8
MaxSize=512
Type=Scalable
$ file /usr/share/icons/Adwaita/symbolic/devices/audio-card-symbolic.svg
/usr/share/icons/Adwaita/symbolic/devices/audio-card-symbolic.svg: SVG Scalable Vector Graphics image I'll make an issue on a Archlinux bugtracker then. |
#2316 fixes the fallback for broken icon themes. |
I'm totally confused, but, yes, the symbolic version is the only one in the package and it does not seem to get used unless requested explicitly (by name or with |
There are a bunch of issues on the adwaita icon theme gitlab about full corour icons that got dropped the 44 release. The issues I checked were fixed by re-adding them. |
Only very few of the icons I listed in #976 (comment) are still available as non-symbolic, namely |
I took your list and checked which one I had on my system. Missing
In scalable directory
I don't use Adwaita as icon theme so I never noticed them missing. |
That's just one part of the list, namely names provided by BlueZ. Of all the other icons that we use |
Still unsure where to go from here. One obvious solution would be to always use symbolic icons for everything... |
I plan to a add a note on icon themes to the release description on GitHub. Something like: Note to maintainers: We found that the Adwaita Icon Theme dropped most non-symbolic icons in version 44, so that it can no longer be considered a generic fallback for GTK. blueman with just Adwaita Icon Theme will show a lot of missing icons. We are still puzzled by this change and try to figure out what to do. You can jump in at #2312. In the meantime, make sure that your packages depend on proper icons themes.
I plan to a add a note on icon themes to the release description on GitHub. Something like: Note to maintainers: We found that the Adwaita Icon Theme dropped most non-symbolic icons in version 44, so that it can no longer be considered a generic fallback for GTK. blueman with just Adwaita Icon Theme will show a lot of missing icons. We are still puzzled by this change and try to figure out what to do. You can jump in at blueman-project#2312. In the meantime, make sure that your packages depend on proper icons themes.
I plan to a add a note on icon themes to the release description on GitHub. Something like: Note to maintainers: We found that the Adwaita Icon Theme dropped most non-symbolic icons in version 44, so that it can no longer be considered a generic fallback for GTK. blueman with just Adwaita Icon Theme will show a lot of missing icons. We are still puzzled by this change and try to figure out what to do. You can jump in at blueman-project#2312. In the meantime, make sure that your packages depend on proper icons themes.
Oh, forget what I wrote. We're already using symbolic icons in many places anyway. Is this actually just an issue with BlueZ-provided device icons? 🤔 Would be easy to force symbolic ones there of course. Edit: It's not. We e.g. use Quick experiment in #2330 |
Let's try! # Check files:
$ file /usr/share/icons/Adwaita/symbolic/devices/audio-card-symbolic.svg
/usr/share/icons/Adwaita/symbolic/devices/audio-card-symbolic.svg: SVG Scalable Vector Graphics image
$ file /usr/share/icons/Adwaita/symbolic/devices/audio-card.svg
/usr/share/icons/Adwaita/symbolic/devices/audio-card.svg: cannot open `/usr/share/icons/Adwaita/symbolic/devices/audio-card.svg' (No such file or directory) Built and installed packages with patches, here are the results: 2.4 + #2330: But those icons are still broken: Edit: After reboot (?) icons got back. So for me, it seems, that issue can be closed. All icons got back |
Never mind. Icons (orange and blue) appears when device is connected. Didn't notice it before.
Nope. Device icons appear when I apply the #2330 patch (with or without patch #2316) and build the package afterwards. For now I will wait for upstream updates and use the patched version. P.S. |
Typical gnome behaviour. Looks like we need resurrect our old icons or find a new set. |
I plan to a add a note on icon themes to the release description on GitHub. Something like: Note to maintainers: We found that the Adwaita Icon Theme dropped most non-symbolic icons in version 44, so that it can no longer be considered a generic fallback for GTK. blueman with just Adwaita Icon Theme will show a lot of missing icons. We are still puzzled by this change and try to figure out what to do. You can jump in at blueman-project#2312. In the meantime, make sure that your packages depend on proper icons themes.
I plan to a add a note on icon themes to the release description on GitHub. Something like: Note to maintainers: We found that the Adwaita Icon Theme dropped most non-symbolic icons in version 44, so that it can no longer be considered a generic fallback for GTK. blueman with just Adwaita Icon Theme will show a lot of missing icons. We are still puzzled by this change and try to figure out what to do. You can jump in at blueman-project#2312. In the meantime, make sure that your packages depend on proper icons themes.
I fail to find a proper primary source, but at least https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/242 makes it very clear that
Unfortunately that effectively means that there just is no "icon pack for everyone to use", it seems. Wow, what a mess... 😒 Well, we can just choose an icon theme that we like and that fits our license (fingers crossed 🤞 😅) and bundle their icons. Most desktops will override them anyway and maintainers could strip them from their blueman packages (I do not really see how they set their packages up then, though, as they'd have to scan all their distribution's icon themes for compatibility to indicate that any of the compatible ones is a dependency of blueman). To put it more precisely: Wow, what a ridiculous mess for the whole Linux desktop! |
We can add additional search paths to the Gtk.IconTheme and point it to fallback icons we provide in some directory we control. Something like edit: I updates the description. |
I plan to a add a note on icon themes to the release description on GitHub. Something like: Note to maintainers: We found that the Adwaita Icon Theme dropped most non-symbolic icons in version 44, so that it can no longer be considered a generic fallback for GTK. blueman with just Adwaita Icon Theme will show a lot of missing icons. We are still puzzled by this change and try to figure out what to do. You can jump in at #2312. In the meantime, make sure that your packages depend on proper icons themes.
Arch Linux has no default icon themes, only those provided by program developers. That's how I discovered this bug. If it will be just |
They have to and do. The content of the file you checked before (below) can't inherit from Adwaita anymore. So whatever this is set to has to provide a full icon theme that applications should be able to rely on.
|
By now budgie, cinnamon and plasma have blacklisted adwaita in their system settings ui as it is no longer an fdo compatible icon theme. My suggestion is we also enforce at lesst one compatibe theme at build time. Breeze can be added to the list as it has everything we need. |
Does it? Querying just a few icon names from our code, it does not seem to have e.g. Papirus looks pretty complete from a quick glance. Even worse than finding compatible themes, MATE's and Linux Mint's seem incompatible as well, they e.g. lack |
I'm on neither @clefebvre. The best place to get the latest on this is this issue created by Nate Graham from KDE, https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/288. Specifically this comment from the AIT maintainer is a reasonable solution. However AIT as of commit https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/commit/788c7a2c0ff0b95d540148715c7cee612e9404f8 has a fallback to Tango. That would probably be the best short term solution. edit: tango looks very dated though so maybe not 🤷 |
I don't find e.g. |
Tango isn't maintained anymore :( There's also an issue coming from the fact that Adwaita provides symbolics and fullcolors come from GNOME. The two-level inheritance leads to Adwaita symbolics taking priority over inherited Fullcolor. |
https://gitlab.gnome.org/jimmac/adwaita-icon-theme-legacy/ looks good indeed. I'll try and talk with Jakub about the symbolic inheritance. The situation is definitely going to get fixed somehow and no matter what, individual apps won't need to adapt. This is something toolkits/DEs/distros need to guarantee to app developers. |
Seems that Issue is resolved - now all icons in apps is showed. If not, package maintainers should add adwaita-icon-theme-legacy dependency Now blueman looks like this - #2312 (comment) |
Awesome! The recently released Adwaita Icon Theme 46.2 added the inheritance from Adwaita Icon Theme legacy, so anybody experiencing this just needs to update to get icons back. 🎉 |
blueman: 2.4
BlueZ: 5.73-4
Distribution: Arch Linux
Desktop environment: Niri (wayland)
After upgrading to version 2.4, my Bluetooth speaker is not listed, but I can interact with it. When left-clicking, a drop-down menu appears (e.g. "Rename" is selected ):
Log from the terminal (it adds more lines on hovering over the selected line). The
Trust
item also doesn't work (last 15 lines)The text was updated successfully, but these errors were encountered: