• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Change Toolbar Icon Size

Scheduled Pinned Locked Moved Developers' Forum
8 Posts 5 Posters 4.0k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    simonstaton
    last edited by 22 Jun 2010, 14:16

    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

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dan Rathbun
      last edited by 22 Jun 2010, 14:34

      See the API on UI::Toolbar class
      http://code.google.com/apis/sketchup/docs/ourdoc/toolbar.html

      You create a UI::Command object:
      http://code.google.com/apis/sketchup/docs/ourdoc/command.html

      The toolbar icon sizes are
      small 16x16 pixels
      large 24x24 pixels

      There are NO other sizes.
      (Your only other option is to change your screen resolution thru Windows.)

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • S Offline
        simonstaton
        last edited by 22 Jun 2010, 14:41

        the only issue is I am looking to distrubute the toolbar is there no way at all of making the icons bigger?

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 22 Jun 2010, 14:44

          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.

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • S Offline
            simonstaton
            last edited by 22 Jun 2010, 14:54

            surely those sizes are kept inside of the programs scripts meaning you would technicly be able to change them somewhere?

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 22 Jun 2010, 15:42

              You can make your own toolbar-like web-dialog...
              Then you can have icon/buttons even text, any size you want...

              TIG

              1 Reply Last reply Reply Quote 0
              • T Offline
                thomthom
                last edited by 22 Jun 2010, 17:26

                @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?

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Chris Fullmer
                  last edited by 22 Jun 2010, 17:42

                  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

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    1/8
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement