Creating Custom Toolbar, Button Icons Not Showing Up

I have tried creating a new toolbar, along with trying to modify an existing toolbar. I have done both add new button, along with edit existing button and get to the button editor, but when I get to import the icon, I press Edit, and under Edit Bitmap, I do File->Import Bitmap to Fit… I select the icon I want, originally a 96x96 pixels saved as a png format. Then press OK to close the Edit Bitmap dialog box and it will show the png file scaled down in the upper right corner. But as soon as I press OK to close the Button Editor, the button shows so image.

I have tried saving the png into a 32x32 pixel png file, and even into a bmp format with no luck.

Here is a screen showing the Button Editor and you can see the icon in the upper right corner, but as soon as I hit OK, it stays the same on the toolbar, the highlighted space. The rest of the buttons are from Text. Can someone explain what I am doing wrong? I have even made sure the icon files are in the search path.

Thanks

Hello - make sure, when you import the image, that the icon size that you are importing to is the one that is currently being used (Small =16 px, medium = 24px, large = 32 px)

-Pascal

That worked. I was only filling in for the 32x32 and nothing else. My button size is actually 24x24 so I just added those size png files and all worked perfectly.

Thanks for the quick help.

Is there really no way that it can fall back to only one icon size?

I created my custom icons in 24x24. Now I moved to a hiDPI display with 250% display scaling in Win10 (which itself it unsupported by the Toolbar editor…). All my icons now show whatever is in the 32x32 size, and there is no way I can see to change this.

I cannot hand-draw all 32x32 by myself for 50 icons right now. Is there any better solution?

@DuncanW There is no automated way to do this. Did you save all you icons (outside of Rhino)? In that case you could upscale them in bulk and reapply them to your 32 x 32 icons.

Thanks for replying, and no I didn’t.

Here’s hoping for SVG icons in future versions of Rhino.