Create new command with API - dark/light theme icons

Hi everyone,

I've developed an add-in for DraftSight and added a few custom commands. However, I'm facing a challenge with the icons. Since some users prefer dark themes and others use light themes, it's tricky to design icons that look good on both. Unfortunately, when creating a new user command, I can only provide a single icon:

CreateUserCommand Method (IApplication) - 2024 - SOLIDWORKS API Help

I tried searching for a way to retrieve the current theme ID in the API documentation:

IApplicationOptions Interface Members - 2024 - SOLIDWORKS API Help

But I couldn't find any relevant information. (If I would be able to get this information then I could prepare two icons and provide the icon based on this setting)

Does anyone have experience dealing with this issue or know of a solution to handle it effectively?

For example, if my icon has a transparent background with a black foreground (see below), it looks excellent on the light theme but becomes completely invisible on the dark theme. Does anyone of you know how to handle it? (I don't want colorful icons. It should be only white or black based on the current selected theme)