After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 343437 - Use correct size for launcher icons (on the panel and in the menu)
Use correct size for launcher icons (on the panel and in the menu)
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
2.14.x
Other Linux
: Normal minor
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-30 19:56 UTC by Sebastien Bacher
Modified: 2015-03-24 13:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Patch (1.21 KB, patch)
2006-08-09 14:31 UTC, Vincent Untz
committed Details | Review
Sizes requested by gnome-panel (3.52 KB, text/plain)
2006-11-08 16:27 UTC, Wouter Bolsterlee (uws)
  Details
Gtk icon theme lookup sizes (8.18 KB, text/plain)
2006-11-08 16:28 UTC, Wouter Bolsterlee (uws)
  Details
f-spot icon lookup (1.93 KB, text/plain)
2006-11-30 02:09 UTC, Arif Lukito
  Details
Tango-Plus icon theme (17.84 KB, application/x-bzip)
2006-11-30 02:11 UTC, Arif Lukito
  Details

Description Sebastien Bacher 2006-05-30 19:56:12 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/gnome-panel/+bug/34774

"When a KDE app appears on the Applications menu, it is rendered with the 16x16 application icon, even if higher res icons appear in /usr/share/icons/hicolor.

However, adding a Custom Application Launcher item to the panel, specifying a KDE application and not setting the icon manually results in the panel displaying a higher-resolution icon (looks 32x32)
...
http://librarian.launchpad.net/1710346/gnome-panel.png
This shows several kde apps on the panel; the left icon was created with a Custom Application Launcher, the right icon was the result of dragging an app from the Applications menu.
...
> Thanks for your bug. The 22x22 variant is used instead of the 24x24 variant. According to a discussion on IRC some days ago:
"dobey: GTK+ isn't handling Threshold properly for close-range sizes like 22 vs. 24"

Vincent, is gnome-panel asking for a 24x24 icon for 24 pixels panel? Have you an opinion on if we should use "Type=Fixed" for the 22x22 categories by example?
...
I think you already fixed this, but anyway, there are good chances that gnome-panel is asking for a 24x24 icon for 24 pixels panel. And if it doesn't, it will for a 25px or 26px panel.

I discussed with lapo about this, and he's right that adding padding in the panel should be okay. I have to try this.
...
Forgot: feel free to open a bug upstream :-)"
Comment 1 Vincent Untz 2006-08-09 12:25:17 UTC
What's weird about the screenshot is that both launchers are on the same panel. And they don't use the same icon. Is it possible to know which icon is used for both launchers?
Comment 2 Vincent Untz 2006-08-09 14:31:13 UTC
Created attachment 70552 [details] [review]
Patch

Should fix most of such issues.
Comment 3 Rodney Dawes 2006-08-09 14:53:44 UTC
Looks good. Is this going into HEAD?
Comment 4 Vincent Untz 2006-08-09 15:18:44 UTC
Not yet, for two reasons:

 + there are still some icons that are blurry in the menu when using 22x22 size

 + I'm still not convinced that the launchers look good when their size is 32x32 on a 44px panel.

The first issue depends on g-i-t, I suppose.

For the second issue, we might want to go back to propose standard sizes for the panel (small, medium, large) which would translate to 22, 32 and 48. This is 2.17 stuff.
Comment 5 Rodney Dawes 2006-08-09 15:43:16 UTC
The first issue actually depends on all the apps shipping icons at the size used by the panel. Since most third party applications, and plenty of the ones we consider to be part of GNOME, only ship a 48x48 png or possibly even larger, installed in $datadir/pixmaps, we're going to have some blurry icons no matter what. The icon theme is not going to be able to solve this. Think about users who install wine, and have icons in their menus, from Windows applications they install. They're going to end up with icons that look slightly blurry. Can you provide a list of the ones that you think are blurry, that we can solve in the apps we ship?
Comment 6 Vincent Untz 2006-08-11 12:14:25 UTC
Rodney: IIRC, there were some category icons which were blurry. You can easily try it by adding this to your gtkrc:

gtk-icon-sizes = "panel-menu=22,22"

(hmmm, you might want to restart the panel since the icons don't get reloaded after the size change???)
Comment 7 Rodney Dawes 2006-08-11 19:42:39 UTC
Ah, you need to upgrade your gnome-icon-theme version I guess. After re-installing it here, the category icons look fine afaict (merged gnome/kde menus on SLED). I'd say that if there are any blurry category icons, just file bugs against gnome-icon-theme for them, assuming the icons are still blurry with HEAD. Aside from that, I agree that the 32px on a 40-47px panel will look a bit odd, but we can fix that for 2.17.
Comment 8 Richard Hughes 2006-10-13 21:52:11 UTC
Vincent, your patch fixes all the "fuzzyness" problems I was seeing with 'Power Management' and the panel. The icons are all selected correctly now and are crisp and sharp.

Has this patch been applied to 2-17? Thanks.

Richard Hughes.
Comment 9 Vincent Untz 2006-10-19 19:50:35 UTC
Richard: I haven't branch the panel, so it's not in yet :-)
Comment 10 Wouter Bolsterlee (uws) 2006-11-05 13:59:40 UTC
CC'ing myself. See http://uwstopia.nl/blog/2006/11/fuzzy-menu-icons for more information.
Comment 11 Wouter Bolsterlee (uws) 2006-11-08 16:27:47 UTC
Created attachment 76213 [details]
Sizes requested by gnome-panel
Comment 12 Wouter Bolsterlee (uws) 2006-11-08 16:28:17 UTC
Created attachment 76214 [details]
Gtk icon theme lookup sizes
Comment 13 Wouter Bolsterlee (uws) 2006-11-08 16:33:12 UTC
Look at the "24" lines in the above 2 files. Note that the output is different for hicolor (sound-juicer icon) and Tango (web-browser icon).
Comment 14 Arif Lukito 2006-11-30 02:09:06 UTC
Created attachment 77395 [details]
f-spot icon lookup

Same here. I have a Tango-Plus theme which is just Tango theme plus some extra icons. I copied all size f-spot icons from hicolor to Tango-Plus and this is what I got
Comment 15 Arif Lukito 2006-11-30 02:11:23 UTC
Created attachment 77396 [details]
Tango-Plus icon theme

try this theme

with Tango: blurry f-spot icon
with Tango-Plus: sharp f-spot icon
Comment 16 Vincent Untz 2007-01-14 17:39:10 UTC
Patch committed to trunk.