|
Subject: Request: Add support for icon overrides / theming
Hi,
Could you please add support for Calibre's built‑in icon theming in a future update?
Currently your plugin uses a custom get_icon() function, which prevents users from overriding the toolbar icon with their own custom images or Calibre icon themes.
The fix is simple: replace the custom function with Calibre's native get_icons(). For example:
python
# Instead of a custom get_icon() function...
# Use Calibre's built-in function:
from calibre.customize.zipplugin import get_icons
icon = get_icons('icon.png', 'Your Plugin Name')
self.qaction.setIcon(icon)
This would allow users to place a custom icon.png in:
calibre/resources/images/Your Plugin Name/icon.png
And it would also make the plugin respect the user's active Calibre icon theme.
Thank you for considering this. I really appreciate your work on this plugin.
Thanks
|