Add tab icon fields (string and image) to the plugin information and add comments to make it easier for plugin developers to fill in information structure

master
Adam Honse 5 years ago
parent 759aa341c2
commit 524fd057fe

@ -20,16 +20,23 @@
struct OpenRGBPluginInfo struct OpenRGBPluginInfo
{ {
std::string Name; /*-------------------------------------------------------------------------------------------------*\
std::string Description; | Plugin Details |
std::string Version; \*------------------------------------------------------------------------------------------------ */
std::string Commit; std::string Name; /* Plugin name string */
std::string URL; std::string Description; /* Plugin description string */
std::string Version; /* Plugin version string */
std::string Location; std::string Commit; /* Plugin commit (git or otherwise) string */
std::string Label; std::string URL; /* Plugin project URL string */
QImage Icon; /* Icon image (displayed 64x64) */
QImage Icon; /*-------------------------------------------------------------------------------------------------*\
| Plugin Tab Configuration |
\*-------------------------------------------------------------------------------------------------*/
std::string Location; /* Plugin tab location, such as "TopTabBar" */
std::string Label; /* Plugin tab label string */
std::string TabIconString; /* Plugin tab icon string, leave empty to use custom */
QImage TabIcon; /* Custom tab icon image (displayed 16x16) */
}; };
class OpenRGBPluginInterface class OpenRGBPluginInterface

Loading…
Cancel
Save