GNOME Bugzilla – Bug 764222
Icon sizes are often wrong
Last modified: 2018-05-24 16:16:09 UTC
It has been noticed that several icons have the wrong size. This bug report is to list discrepancies in icon size until we decide if to change the code (to match current icon size) or update the icons (to match the code). This is especially annoying when this rescales icons, hence making them blurry. - tool icon files are currently in size 16x16 and 22x22. Our themes were actually requesting GTK_ICON_SIZE_BUTTON, which is 20x20. The icons were not resized though, since 2 pixels is the default threshold of a GTK+ theme, which deem the size difference acceptable. Let's note that GTK+3 seems to go for multiples of 16 and 24 only (https://developer.gnome.org/gtk3/stable/gtk3-Themeable-Stock-Images.html#GtkIconSize). So should we follow this, and have tool icons as 16 and 24? - dock tab icons are currently 16x16 and 24x24. I note that once again, we are requesting GTK_ICON_SIZE_BUTTON size. But this time, since there are more than 2 pixels of difference, icons are resized! - Kevin Payne was noting that menu icons are rendered as 13x13 instead of 16x16 (I could not check since it seems that GNOME 3 disable menu icons). So our icons are rescaled here too. - gimp-gravity-* are 24x24 but our code requests GTK_ICON_SIZE_BUTTON (20x20) too. So these icons are being rescaled as well (cf. app/tools/gimpalignoptions.c). Any more?
For toolbox icons, let's keep the code: so our official icon sizes for any new tool icons should be 16x16 and 24x24. At least technically, we are using gtk_tool_palette_set_icon_size() to set toolbox icon sizes, and I can't find any workaround to set sizes numerically anyway. 24x24 is not bad a size, so let's just make things simple. To make sure that the Legacy theme is still usable, I set the [22x22/apps] as "Threshold" type: commit 3ee103bfeb8f39901f755fd65935ccb7868e6b3c Author: Jehan <jehan@girinstud.io> Date: Mon Mar 28 13:50:30 2016 +0200 icons: Legacy's 22x22/apps icons of "Threshold" type. Otherwise toolbox icons won't be used preferably to 24x24 default icons.
> Kevin Payne was noting that menu icons are rendered as 13x13 instead of 16x16 (I could not check since it seems that GNOME 3 disable menu icons). So our icons are rescaled here too. With the GIMP_ICONS_LIKE_A_BOSS environment variable (which I didn't know about until a few days ago!), I could finally test GIMP with menu icons. And I could not verify this. On GNOME at least, menu icons are rendered 16x16 as expected. Maybe this issue affects only Windows?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/874.