[bug] Macro editor locks dark-mode icons to recolor option

If I open a custom Macro library (for my custom toolbar), select a macro, and click Edit, the little macro editor that pops up locks the dark mode icon to the ‘recolor light image for dark modes’ option.

I have to first click on the light image and click OK in the light image’s editor. Then I am able to set the dark mode image to the ‘use a different image’ option so I can choose the dark mode image.

This may or may not be related to what seems to be another bug where no matter how many times I set the dark mode images and save the toolbar, when I re-install the toolbar, it is back to this state where only the light images are used and the dark images are all locked to the ‘recolor’ option.

The video below demonstrates the editor locking the dark-mode icons.

Hello @webdunce,

If I understand it right, I think there’s a few issues in this post.

  1. The Edit Mode UI does not respond to changes for the dark mode icon

  2. Updated Dark Mode icons do not update

  3. Dark mode images not updated on save

Does this mean you cannot change the recolour at all for your toolbar?

Is there a reason for the Developer category? Are you trying to use APIs to achieve this, or this is for a plugin?

1 Like

Hi, @CallumSykes . Thanks for responding!

  1. The Edit Mode UI does not respond to changes for the dark mode icon

The edit mode UI does not allow me to change the dark-mode’s icon mode. It stays stuck on the ‘recolor’ option until I click on the light-mode icon as if I were going to change the light-mode image. And I think I have to click OK in the light mode editor. After that, then I can set the dark-mode side to ‘use different image’ and the dark-mode image editor opens (I use png’s, btw, if that matters). It seems that after I do that once, the macro editor will allow me to set any other icon in that set of macros to “use different image” without first having to click on the light-mode icon (except that since all the icons were set to ‘recolor’, I have to go in and add the dark-mode images again).

  1. Updated Dark Mode icons do not update

There’s two update issues.

  1. In the macro editor, after adding the dark-mode image, I have to hover my mouse over the image to get it to update the display.

  2. I have to dock or undock the toolbar to get the images to update on the toolbar.

It’s always been like this, though. And, while I’d love to see these issues fixed as it is a minor inconvenience, they are low-priority for me as it doesn’t affect my end users.

  1. Dark mode images not updated on save

Yes, even thought the toolbar functions normally after I update all the dark-mode images, it seems after I save the toolbar, whether through the save option in the toolbar page of the Rhino Options panel or through the export RUI option in the Tools menu, if I remove the toolbar and add back the new file, it reverts to light-images only and dark-mode is locked to ‘recolor’ (until I click on the light color image).

Does this mean you cannot change the recolour at all for your toolbar?

Well I can get the toolbar working correctly by performing the steps outlined above, but I distribute the toolbar to users of my kit and, from what I can see, my toolbar file will not work correctly in dark-mode until the user first ‘unlocks’ it from ‘recolor’ mode and then updates all the dark-mode images, which is not a task I want my users to have to do. For them, I want the toolbar to work correctly out of the box.

I spent all day yesterday trying to come up with a design that looks kind of OK in light and dark mode. I’ve come up with a design. I don’t like it, but it kind of works. If this will take a while to resolve, I may have to use that design because my current light-mode toolbar looks horrible in dark-mode.

Is there a reason for the Developer category? Are you trying to use APIs to achieve this, or this is for a plugin?

It’s for a little jewelry kit I make. It includes a toolbar. I normally put issues I have with developing the kit in the scripting category, but this isn’t a scripting issue; so, I put it in the developer’s category. It’s not technically a plug-in, but it would seem like one from the user’s perspective, and I feel like a developer since I’ve spent like the last 2 years of my life day and night working on what I thought would be a ‘simple’ kit. And in this case I’m ‘developing’ a toolbar, so the developer category felt right to me, but now I’m guessing that’s more for people making actual plug-ins. Now that I think about it, the macro library editor is actually just a normal part of Rhino, so I’ve moved it to the general Rhino category. If there’s a better category, let me know.

And let me know if you need anything else. Like, more clarification, more videos or if you need me to send in my rui file or anything.

Oh, and here’s my system info.
system_info.txt (2.5 KB)

@CallumSykes , I must apologize. I’ve sent everyone on a wild goosechase here. I changed how my toolbar filenames work but I did not update the installer script. So it was opening the rhino7 toolbar even in rhino8. Now that it opens the correct toolbar, everything is working fine now.

Ah! Well, I’m just glad things are working correctly for you now :slight_smile:

1 Like