View Single Post
Old 04-29-2026, 06:47 PM   #331
gurcha
Enthusiast
gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'gurcha can spell AND pronounce 'liseuse.'
 
Posts: 37
Karma: 39966
Join Date: Aug 2023
Device: Kindle
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
gurcha is offline   Reply With Quote