09-03-2020, 06:55 AM
I have several plugins, some with more than one panel, that are all defined similar to the panel sample project, but all panels display only the dark UI icon. Here's my code:
IDToFile.txt
Tool icons and other images all respond to light or dark UI as expected. Given all plugins display only dark UI icons for panels, I wonder if it' a bug. Then again, CADtools' panel icons are correct, so maybe there are rules for resource ID numbers besides >5,000.
Any suggestions would be much appreciated.
Code:
this->__docPanel = hdi::core::Panel(
"AxoTools Projection", // Panel title
this->docPanelSize, // Panel size
false, // is width resizeable
false, // is height resizeable
hdi::core::ImageIDs( AT_pnlIcon_PNGI_RSRC_ID,
AT_pnlIcon_3TO2X_PNGI_RSRC_ID,
AT_pnlIcon_2X_PNGI_RSRC_ID,
AT_pnlIcon_DARK_PNGI_RSRC_ID,
AT_pnlIcon_DARK_3TO2X_PNGI_RSRC_ID,
AT_pnlIcon_DARK_2X_PNGI_RSRC_ID)
);
IDToFile.txt
Code:
19000.png pnlIcon.png
19001.png pnlIcon@2x.png
19002.png pnlIcon@3to2x.png
19004.png pnlIconDark.png
19005.png pnlIconDark@2x.png
19006.png pnlIconDark@3to2x.png
Tool icons and other images all respond to light or dark UI as expected. Given all plugins display only dark UI icons for panels, I wonder if it' a bug. Then again, CADtools' panel icons are correct, so maybe there are rules for resource ID numbers besides >5,000.
Any suggestions would be much appreciated.