GNOME Bugzilla – Bug 350190
Need specific icon for GTK_ICON_SIZE_SMALL_TOOLBAR for close icon
Last modified: 2014-01-23 17:55:49 UTC
Hello, at this time, GTK_ICON_SIZE_SMALL_TOOLBAR and GTK_ICON_SIZE_LARGE_TOOLBAR share the same icon for GTK_STOCK_CLOSE (at least), at it ends to bugs 350176 and 350177 . Nautilus use a workaround by using GTK_ICON_SIZE_MENU, but would be great to have a small size for this icon to have consistent close button for sidebar.
oups sorry
I'm not sure this should be an icon theme bug. GTK+ is requesting silly sizes for GTK_ICON_SIZE_BUTTON and GTK_ICON_SIZE_SMALL_TOOLBAR. 20 and 18 px respectively. Drawing all the possible stock icons in these weird sizes seems like a bit much.
Another solution is to use thresholding to avoid the nasty bitmap scaling... Use 16x16 bitmaps until the size of 21x21, then 22x22 until the size of 31x31, then 32x32px until 48x48 and then scale the SVG up.
Asking icon themes to create 18x18 and 20x20px sizes in addition to the common 16x16, 22x22, 24x24, 32x32, 48x48 and now 256x256px is not the way. gtk should request either 22x22px for these or 16x16. No icon theme in existence provides 20x20 or 18x18 as far as I know.
Created attachment 267017 [details] [review] Use 16px as default button and small toolbar icon sizes
Attachment 267017 [details] pushed as b617b00 - Use 16px as default button and small toolbar icon sizes