-
Notifications
You must be signed in to change notification settings - Fork 350
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
Support special icon size subfolders 24@2x #1401
Comments
Hello, thanks for pointing this out. I will try to look into it since we already have some issues with icon sizes. Also, maybe 24@2x is intended for 24 icons when the scale is 2x? |
The
The spec says this about scale:
https://specifications.freedesktop.org/icon-theme-spec/latest/#definitions To me, this suggests that the main purpose of these icons is for high DPI; but I don't see why they couldn't be used as fallback (e.g. using 24@2x when 48x48 is required and no "native" 48x48 icon is present). Given breeze-dark's |
This case should already be covered by tests: Line 42 in 0d89935
dunst/test/data/icons/theme/index.theme Lines 43 to 46 in 0d89935
Although, I'd assume the expected path to start with |
We might as well add a 24x24 test case. But I think right now the scale factor is somehow ignored when searching |
https://specifications.freedesktop.org/icon-theme-spec/latest/#icon_lookup contains a pseudo code section explaining how icon lookup could/should be implemented. The relevant part for the scale property is found in |
Issue description
Certain themes (e.g. breeze-dark) organize their icons in subfolders denoting the icon's size.
However, sometimes they use un-intuitive names for these subfolders (or symlinks).
I don't know why they use
24@2x
instead of48
.This icon theme provides SVG files.
Nevertheless, dunst does not pick up these icons using:
If I manually create a symlink
48 -> 24
, the icons are picked up correctly.I'd like dunst to support folder names like
24@2x
as well in order to support such icon themes out-of-the-box.Alternatively, we should talk to icon theme vendors to provide additional symlinks (like the one I created for testing).
Edit: additional information here
Edit 2: This could actually be an issue with the specific theme I am using.
I've opened an issue upstream and will update this one accordingly.
Installation info
The text was updated successfully, but these errors were encountered: