On 2007-April-30 , at 23:15 , Jon A. Cruz wrote:
On Apr 30, 2007, at 9:25 AM, jiho wrote:
So if I understand well, ICON_SIZE_DECORATION is something specific to Inkscape. Can I control which standard GTK icon size it gets assigned to from the theme only? Currently I use: gtk-icon-sizes = "gtk-menu=13,13:gtk-button=16,16:gtk-large- toolbar=24,24:gtk-small-toolbar=16,16:gtk-dialog=48,48" I would like the menu icons to remain small and the DECORATION icons to be gtk-small-toolbar size, if that's possible. Otherwise I'll just use 16x16 in the menus but the fact that these toolbar elements get assigned to the size to the menu icons seems strange.
[...]
Yes, that size is specific to Inkscape. You can specify it in a gtk rc file with
gtk-icon-sizes = "inkscape-decoration=64,64"
(as you can see, that one will make them huge)
OK, thank you, I'll do this in my particular theme since it's clearly related to Inkscape.
The intent of that custom size was to have things that are "smaller" than the normal toolbar items. They could be less important, or perhaps are visual state indicators that are additional and informational. Bulia is the one who really wanted to keep them smaller, and I agree that overall that improves the UI.
I believe that the code defaults to the "menu" size, since it is usually smaller and about the size desired. *Then* whenever possible the code goes and registers our size as 75% of the menu icon size. On the smaller ones it is not as noticeable, but when more dots are specified (high-res monitor, large print theme, etc.) that starts to show more.
Again, the intent of that size is to have visual items that are smaller than the small toolbar size.
I understand this and agree that it improves the UI and is conceptually justified to have those icons a bit smaller than the rest of the toolbar's icons. However, if it is possible to specify those sizes as percentage of a standard size, why not use 75% of gtk- small-toolbar size? This way, these icons are guaranteed to be `"smaller" than the normal toolbar items`. Indeed gtk-menu size seems completely independent from the toolbar size to me and there may be themes in which people want their menu icons to be very big or very small and they will make Inkscape look strange, don't you think?
Just to go a little further because I know you implemented the color swatches bar: how are the sizes decided there? is it something along the lines: tiny=50% of inkscape-decoration small=75% of inkscape-decoration normal=100% ... or something like: tiny=gtk-menu-size small=gtk-small-toolbar-size normal=gtk-large-toolbar-size ... Indeed I remarked that, with some themes, tiny may be bigger than small which is odd.
If you go to your .inkscape/preferences file, look for the top- level "debug" group, possibly near the end. Then look for an "icons" group in there. Set dumpDefault to 1 and you should get this when you run:
** Message: Default icon sizes: ** Message: =-- 0 size:1 (16, 16) 'GTK_ICON_SIZE_MENU' ** Message: 0 size:1 (16, 16) ** Message: =-- 1 size:2 (18, 18) 'GTK_ICON_SIZE_SMALL_TOOLBAR' ** Message: 1 size:2 (16, 16) ** Message: =-- 2 size:3 (24, 24) 'GTK_ICON_SIZE_LARGE_TOOLBAR' ** Message: 2 size:3 (24, 24) ** Message: =-- 3 size:4 (20, 20) 'GTK_ICON_SIZE_BUTTON' ** Message: 3 size:4 (20, 20) ** Message: =-- 4 size:5 (32, 32) 'GTK_ICON_SIZE_DND' ** Message: 4 size:5 (32, 32) ** Message: =-- 5 size:6 (48, 48) 'GTK_ICON_SIZE_DIALOG' ** Message: 5 size:6 (48, 48) ** Message: =-- 6 size:7 (12, 12) 'inkscape-decoration' ** Message: 6 size:7 (12, 12)
Here is the snippet of my prefs: <group id="debug"> <group id="icons" overlaySvg="0" dumpDefault="1" dumpGtk="0" dumpSvg="0" />
</group> </inkscape>
OK that's a good tip. Thanks.
JiHO --- http://jo.irisson.free.fr/
participants (1)
-
jiho