Change Toolbar Icon Size
-
Hi,
I have built my own custom toolbar with icons in ,png format however is there anyway to change the size of the icons? I have the toolbar set on large icons however this is still to small, where abouts would I edit the icon width and height?
Simon
-
See the API on UI::Toolbar class
http://code.google.com/apis/sketchup/docs/ourdoc/toolbar.htmlYou create a UI::Command object:
http://code.google.com/apis/sketchup/docs/ourdoc/command.htmlThe toolbar icon sizes are
small 16x16 pixels
large 24x24 pixelsThere are NO other sizes.
(Your only other option is to change your screen resolution thru Windows.) -
the only issue is I am looking to distrubute the toolbar is there no way at all of making the icons bigger?
-
No - SketchUp only offer toolbar in two sizes, 16px and 24px icons.
Personally, as a user, I always use 16px icons in order to preserve screen estate. -
surely those sizes are kept inside of the programs scripts meaning you would technicly be able to change them somewhere?
-
You can make your own toolbar-like web-dialog...
Then you can have icon/buttons even text, any size you want... -
@simonstaton said:
surely those sizes are kept inside of the programs scripts meaning you would technicly be able to change them somewhere?
Not exposed to the Ruby API.
But where you intending on changing the user's UI? -
Ruby is not the programming language of SketchUp. SketchUp is written in a compiled, closed down language and we do not get to see what makes SketchUp work. They have opened small portals into SketchUp. That is where Ruby comes in. Ruby is allowed to interface with the core SketchUp program. But it can only do what they have designed it do it. They have not allowed us access to change the toolbar icon possible sizes, therefore we can not do it.
But the workaround is to make your own icons on the screen like some of us have played with. Or to make a Web Dialog with your own icons.
Besides, I bet no one would want you to change their icon size for them. People have very strong feelings about how their UI is set up. And no one would want a script to come in and change things outside the realm of that script (like global icon size). Good luck with it,
Chris
Advertisement