Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2022, 08:10 PM   #1
jennie2486
Member
jennie2486 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2017
Device: Android Tablet
How can I Change Plugin Icons in Calibre?

I just updated Calibre from 5.4 to 6.1 and all plugin icons have changed. I tried applying an icon theme the way I did before but changes only effect calibre icons, not plugins. Can anyone explain how I can change my plugin icons?
jennie2486 is offline   Reply With Quote
Old 07-16-2022, 08:25 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,950
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Plugin Icons are embedded into the plugin (zip) file.You will lose your mods every time that PI updates
theducks is offline   Reply With Quote
Advert
Old 07-17-2022, 05:45 AM   #3
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,202
Karma: 1355861
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by jennie2486 View Post
I just updated Calibre from 5.4 to 6.1 and all plugin icons have changed. I tried applying an icon theme the way I did before but changes only effect calibre icons, not plugins. Can anyone explain how I can change my plugin icons?
calibre 6 uses a new themeing scheme. Most plugins haven't update their code to support it.

In any case, you can go to the icon theme page (on mobileread.com) and download the icons file. Unpack it and get the folders with the same name as the needed plugins. Save those to your calibre config directory, (inside ../resources/images).

Remember that those icons will not change automatically if you choose another icon theme or change your system color (dark or light).
thiago.eec is offline   Reply With Quote
Old 07-17-2022, 02:31 PM   #4
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,907
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by thiago.eec View Post
calibre 6 uses a new themeing scheme. Most plugins haven't update their code to support it.
I was unaware of that. Can you point me to info about how to use it in plugins?
JimmXinu is offline   Reply With Quote
Old 07-17-2022, 03:22 PM   #5
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,202
Karma: 1355861
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by JimmXinu View Post
I was unaware of that. Can you point me to info about how to use it in plugins?
Hi, @JimmXinu

Kovid posted about it on the Plugin devs: Upcoming migration to Qt 6 thread.

Quote:
Originally Posted by kovidgoyal View Post
Released version 5.99.3 with support for icon themeing.

As of 5.99.3 the betas have support for proper icon themeing with support for using different icon themes for light and dark mode and calibre switches between them automatically. In order to use icons from themes that support your plugin you should pass the plugin name to the get_icons() function to load an icon. For example:

Code:
icon = get_icons('owp_sigil.png', 'Open With')
this will load the owp_sigil.png plugin from the users installed icon theme, if present, falling back to the image in the plugin zip file. Note that if you use kiwidude's code for loading icons, you will need to adjust it, as the way it loads themed icons will no longer work.
It's also on the Manual.
thiago.eec is offline   Reply With Quote
Advert
Old 07-17-2022, 03:46 PM   #6
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,907
Karma: 4604435
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Thanks, guess I forgot about that. I'll look into it for my plugins.
JimmXinu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there an option that will let me change format icons? ownedbycats Calibre 3 06-20-2020 07:52 PM
Bunch of plugin icons?!? patrik Sigil 4 01-10-2020 09:17 AM
Plugin icons on Tools toolbar DNSB Sigil 6 12-07-2017 01:58 AM
How do I change Plugin Images/Icons? Steppa Plugins 8 01-22-2013 06:37 PM
Launching plugin routines from keyboard or icons meme Development 2 04-18-2011 01:05 PM


All times are GMT -4. The time now is 01:15 AM.


MobileRead.com is a privately owned, operated and funded community.