Re: [Inkscape-user] icon theming
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.
participants (3)
-
Bryce Harrington
-
Jon A. Cruz
-
MenTaLguY