Hello everybody,
I am working on a GTK theme and I noticed some strange things with icon sizes. The icon sizes definitions for GTK I could find are:
# gtk-menu -> icon in menus: file, edit, etc. # gtk-button -> icon on yes, no, delete, cancel, back, forward, etc. buttons # gtk-small-toolbar -> not sure about this # gtk-large-toolbar -> toolbars icons # gtk-dnd -> don't know # gtk-dialog -> notification icon in dialogs (e.g. warning, error,etc.) # panel-menu -> icon size in so called 'start' menu
but Inkscape apparently uses gtk-menu size for some toolbars icons, instead of gtk-small-toolbar size as used for the rest of the toolbars: - the fill and stroke swatches both at the bottom of the window and at the end of each tool for which they are relevant - the eye and lock icons next to the layer drop down - the lock icon between width and height in selector tool toolbars as well as all icons at the right end of the toolbar - the magnifier icon at the top-right of the rulers/scollbars - the last icon of the node tool toolbar - the connector tool toolbar last two icons - the gradient tool toolbar icons - the dropper tool toolbar icons It does not look like and intended behavior but maybe it is.
And a less important problem: in Inkscape's icon.svg, gtk-small- tollbar size icons are designed at 16x16 and gtk-large-toolbar size icons are 24x24. All icons of the fill and stroke dialog are designed a gtk-large-toolbar size (24x24) but the plain, gradient, pattern etc. icons of the fill and stroke dialog are displayed at gtk-small- toolbar size (16x16) which results in less crispy icons.
JiHO --- http://jo.irisson.free.fr/
On Apr 30, 2007, at 2:01 AM, jiho wrote:
I am working on a GTK theme and I noticed some strange things with icon sizes. The icon sizes definitions for GTK I could find are:
# gtk-menu -> icon in menus: file, edit, etc. # gtk-button -> icon on yes, no, delete, cancel, back, forward, etc. buttons # gtk-small-toolbar -> not sure about this # gtk-large-toolbar -> toolbars icons # gtk-dnd -> don't know # gtk-dialog -> notification icon in dialogs (e.g. warning, error,etc.) # panel-menu -> icon size in so called 'start' menu
but Inkscape apparently uses gtk-menu size for some toolbars icons, instead of gtk-small-toolbar size as used for the rest of the toolbars:
Not really. That size is just an accident or misinterpretation of what is going on. (There is some option that can be turned on to enable dot grids in the icon rendering)
From src/icon-size.h we use: enum IconSize { ICON_SIZE_INVALID = ::GTK_ICON_SIZE_INVALID, ICON_SIZE_MENU = ::GTK_ICON_SIZE_MENU, ICON_SIZE_SMALL_TOOLBAR = ::GTK_ICON_SIZE_SMALL_TOOLBAR, ICON_SIZE_LARGE_TOOLBAR = ::GTK_ICON_SIZE_LARGE_TOOLBAR, ICON_SIZE_BUTTON = ::GTK_ICON_SIZE_BUTTON, ICON_SIZE_DND = ::GTK_ICON_SIZE_DND, ICON_SIZE_DIALOG = ::GTK_ICON_SIZE_DIALOG, ICON_SIZE_DECORATION };
That last one is the "decoration" size we've added in Inkscape that is used for things like the eye and lock icons, etc.
GTK's enum is documented at http://developer.gnome.org/doc/API/2.0/ gtk/gtk-Themeable-Stock-Images.html#GtkIconSize
participants (2)
-
jiho
-
Jon A. Cruz