Hi folks, I tried to start tweaking inkscape icons so it's less of a blur but stumbled on some obstacles.
As per some discussion on the #inkscape channel I was convinced I could use ~/.inkscape/icons/ to store PNG icons with filenames corresponding to the icons.svg object ids or the old XPM icon set. However this doesn't appear to have any effect.
Failing that, I tried doing them in vector. While ~/.inkscape/icons/icons.svg does seem to override the global icons, I'm puzzled about the size. The icons in the toolbar, nor the icons in the menus seem to match the 1:1 zoom of icons.svg thus any effort trying to position elements to the raster grid are useless. My 16x16px icon got scaled down to about 10px in the toolbar. What's the magic here?
I'm still convinced that for small resolutions such as the toolbar and definitely menu icons, bitmap icons will take less effort to draw. Even if you do them in vector, you still need to make sure the objects align well to the grid to render sharp. That means either having menu and toolbar render at the same size or doing every icon twice anyway. [1]
I see the usefulness of SVG icons, phasing them in gnome icon theme, but for tiny resolutions they don't work without pixel-perfect positioning.
[1] - More on this here: http://primates.ximian.com/~jimmac/blog/Artwork/SVG-NG/
cheers
My 16x16px icon got scaled down to about 10px in the toolbar. What's the magic here?
I would like to be able to tell you why the icons are the size they are, but the icon drawing code we inherited from Sodipodi is scary and nobody quite understands it... :P
I'll CC the devel list in case perhaps the gtkmmification team has made any breakthroughs studying and/or rewriting that code.
-mental
MenTaLguY wrote:
My 16x16px icon got scaled down to about 10px in the toolbar. What's the magic here?
I would like to be able to tell you why the icons are the size they are, but the icon drawing code we inherited from Sodipodi is scary and nobody quite understands it... :P
I'll CC the devel list in case perhaps the gtkmmification team has made any breakthroughs studying and/or rewriting that code.
Well.. I'm not sure what the others have seen, but I'm aware of the problem and of the approaches to pinpoint it. As part of a massive dive into the UI, the icons were somthing I was about to check. (Oh, and I've messed with our pixbuf loading in various places before so I know the GTK+ tech involved).
Also, being in charge of engineering for 3 years at a small multimedia shop got me good experience in tracking down these 'artwork tech details' jobs.
But then, that's only Phase I of my evil plan. After that, I plan to get <multiImage> implemented so that we have have different content for different resolutions. Tie that in with embedded bitmaps and SVG icons are suddenly *very* powerful.
On Tue, Feb 08, 2005 at 11:34:07PM -0500, MenTaLguY wrote:
My 16x16px icon got scaled down to about 10px in the toolbar. What's the magic here?
I would like to be able to tell you why the icons are the size they are, but the icon drawing code we inherited from Sodipodi is scary and nobody quite understands it... :P
I'll CC the devel list in case perhaps the gtkmmification team has made any breakthroughs studying and/or rewriting that code.
I don't know if we solved it with the gtkmm code, but the scaling is different. Actually I'm not super happy with it, because the allowed toolbar sizes are slightly bigger than what we're used to in Inkscape. We've not had a chance to investigate why it's doing this though.
Bryce
Bryce Harrington wrote:
On Tue, Feb 08, 2005 at 11:34:07PM -0500, MenTaLguY wrote:
I would like to be able to tell you why the icons are the size they are, but the icon drawing code we inherited from Sodipodi is scary and nobody quite understands it... :P
I'll CC the devel list in case perhaps the gtkmmification team has made any breakthroughs studying and/or rewriting that code.
I don't know if we solved it with the gtkmm code, but the scaling is different. Actually I'm not super happy with it, because the allowed toolbar sizes are slightly bigger than what we're used to in Inkscape. We've not had a chance to investigate why it's doing this though.
I was changing a lot of stuff in the main code, and think I've got a good handle on why things were happening. Too much was hardcoded, including our main code asking for icons with absolute pixel sizes that were hardcoded, thus causing stock items to be scaled.
So... the non-gtkmm'd code is doing things a bit better, but the gtkmm icon stuff is using some standard approaches that should probably get mixed in.
Oh, and for the toolbar sizes, just switch between a stock theme and one of the visibility ones like "Large Print". That will expose all sorts of interesting things about the UI.
On Tue, 08 Feb 2005 23:19:54 +0100, Jakub Steiner <jimmac@...446...> wrote:
[1] - More on this here: http://primates.ximian.com/~jimmac/blog/Artwork/SVG-NG/
Screenshots are absent
Alexandre
On Wed, 2005-02-09 at 14:06 +0300, Alexandre Prokoudine wrote:
On Tue, 08 Feb 2005 23:19:54 +0100, Jakub Steiner <jimmac@...446...> wrote:
[1] - More on this here: http://primates.ximian.com/~jimmac/blog/Artwork/SVG-NG/
Screenshots are absent
Unfortunately pinknet.cz, which hosts all my images had a hard drive crash and we're looking for a recent backup :(.
cheers
participants (5)
-
Alexandre Prokoudine
-
Bryce Harrington
-
Jakub Steiner
-
Jon A. Cruz
-
MenTaLguY