View Single Post
Old 09-14-2023, 08:10 AM   #201
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by kovidgoyal View Post
calibre 6 (to be released in a few months), will be based on Qt 6. Qt 6 has various minor incompatibilities with Qt 5, many of which I have implemented compatibility layers for. However if your plugins use Qt then they need to be tested against Qt 6. Beta builds of calibre you can use for that purpose are available here: https://download.calibre-ebook.com/betas/

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:

[...]
Hi,

if I understand this correctly I should be able to create an icon theme with light and dark versions for plugin icons too?

I'm on windows 10,
I tried to create icons in the "resources\images\Name of the plugin" folder but it works when I use icon.png but if I use icon-for-dark-theme.png or icon-for-light-theme.png the icon doesn't show up in calibre.

Even with @JimmXinu plugin's like EpubMerge which specifies in the version note "Use Cal6 get_icons() so icon themes apply" I can't get it to work.

What should I do concretely with the light and dark icons ?
Nicolas F is offline   Reply With Quote