Ok, I've just released new versions of all of my plugins so they will support the possibility of skinning. Give me a yell if you experience any issues with that but it seemed to work ok from my quick testing.
Clearly there are other UI plugins by other developers that will not as yet made changes to support skinning in this way. Whether they do or not is obviously up to them and if/when they plan to release a new version.
To the other plugin developers
- if you want to just "borrow" code, take a look in any of my UI plugins at the top of common_utils.py at these functions (with two variables plugin_name and plugin_icon_resources). I am sure you can simplify them if you want to but I re-use each of these functions individually for other purposes too.
The assumption I make in all my plugins is that all images will exist within an images subfolder within the zip, so any request to get_icon or get_pixmap that starts with "images/" is believed to be for plugin icon.
The initialisation of the resources for the plugin is in the InterfaceAction derived class in action.py in the genesis method, with code like this:
from calibre_plugins.foo.common_utils import set_plugin_icon_resources, get_icon
PLUGIN_ICONS = ['images/foo.png']
icon_resources = self.load_resources(PLUGIN_ICONS)
Then anywhere I need an icon, I just use:
And as described in post 2 above, it will first look in the local Calibre resource images folder for a subfolder of the plugin name for that icon, and if not then use that found from resources loaded from the zip.
Hope that helps.