Would this be possible? It would add flexibility and configurability, and the code might be partially reusable in both plugins since it's some else/if checks and a few combo/checkboxes added to their respective config dialogs.
Pseudocode:
if (userConfig.trayIconSize) < 1 { // No invisible icons
userConfig.trayIconSize = userConfig.panelIconSize}
}
else if (userConfig.trayIconSize) > userConfig.panelHeight { // No icons bigger than the panel; still respects theme padding/margin if specified
userConfig.trayIconSize = userConfig.panelIconSize}
}
else {
drawIcon(position, name, userConfig.trayIconSize);
}
Would this be possible? It would add flexibility and configurability, and the code might be partially reusable in both plugins since it's some else/if checks and a few combo/checkboxes added to their respective config dialogs.
Pseudocode: