Just thought I’d briefly test a few of the outstanding issues today.
Tested on Windows Rhino (8.5.24058.13001, 2024-02-27) - current SRC
I created a new scheme so as to have Rhino completely default. I then typed Toolbar
and created a new .rui, added two blank toolbars and saved it. In toolbar 1 I simply copied over some random buttons from default, in toolbar 2 I made a couple of new blank buttons, imported a custom .svg for each and filled out the various command areas. Both toolbars are set to display as default “Image only”, and the buttons to “Inherit appearance from tab”. Leaving the toolbars open, I then closed Rhino.
Going back to the folder where the .rui is stored, I notice that nothing has actually been saved to the .rui - it is still 1kb.
This is designed behavior that has not changed since the last time - the rui is not saved when Rhino is closed, the changes are stored in separate settings files.
Re-opened Rhino and in toolbar 2 I set one of the buttons to image + text. They then looked like this:
I then tried saving the .rui via Toolbar>File>Save… And then I closed Rhino again. The .rui file then registered as 19kb, so something got saved.
Re-opened Rhino. What’s cool is that now the images in the custom buttons in the .rui are still there. That wasn’t the case when I last tested. However, there are still some problems. Note that the button that was set to image + text before the .rui save has been reset to “Inherit appearance from tab”.
So problem #1: Button appearance settings are not saved when the .rui file is saved (and the settings for this are also deleted)
Edit: I made a bug report for this. Note also that it is not only the container (toolbar) being reset but also any individual buttons in it.
https://mcneel.myjetbrains.com/youtrack/issue/RH-80764/Saving-.rui-resets-both-toolbars-and-buttons-appearance-to-default
Next experiment - I first reset the one button to image + text. Then I clicked on the gearwheel for toolbar 2 and set the whole toolbar to image + text. What happened next surprised me. The left button - which before had no text as it inherited from the toolbar, now got some text - that is correct. However, a new “ghost” button got created, which was a copy of the button next to it - the one that did have text ! And this one, without text, is sitting on top of the text for the button to the left !!!
It’s not just an image, you can actually click that button and the command executes.
This is the left button with its tooltip:
And here is the middle “ghost” button with its tooltip:
One on top of the other… I think this has been reported previously in one form or another, obviously not been fixed. OK, close Rhino and re-open and the anomaly is now gone.
However, in setting up this post and doing screenshots in Photoshop I noticed something new. If I switched from Rhino to (already open) PS by clicking on the PS taskbar button once, then back to Rhino by clicking on the PS taskbar button again (not the Rhino taskbar icon), I got this:
The Rhino window is active, but the floating toolbars are blank. The docked toolbars are still showing. You have to click out on the desktop somewhere and back into Rhino for them to show up again, or mouse over the toolbars to get some sort of image but that doesn’t look 100% right.
OK, and last but not least, I copied the two buttons from toolbar 2 in the custom .rui into Default and I then closed the .rui. I then closed Rhino and re-opened it. Previously this would have caused the two copied buttons to be blank, their icons as well as the commands missing. However, much to my delight, the two buttons were both there and functional - the images and the command macros, tooltips, etc. had been preserved - i.e. a real independent copy had been made. This is good progress, thanks!
So, there are still some issues to be ironed out, but things are improving. Problem 1 above definitely needs to be fixed, as saving a .rui needs to preserve its integrity 100% - which it is not doing yet. A personal issue I also have with this is why the custom .rui isn’t simply saved every time Rhino is closed like in previous versions.
The rest are probably mostly display-related issues. The ghost button phenomenon described above isn’t life-threatening, but it is definitely bizarre and needs to be looked at.
I will test later on my own custom workspace - I am particularly interested to know what saving an infinitely more complex .rui will do. I now have backups in place to allow me to restore it to the previous state should things go pear-shaped. I’m virtually certain to need to do so, as the problem of toolbar appearance inheritance described above will affect more than half of the dozens of custom toolbars I have created in that rui.