View Single Post
Old 09-14-2023, 01:29 PM   #211
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 thiago.eec View Post
Yes. Using get_icons('icon.png', PLUGIN_NAME) works.

You need this too:
..\resources\images\PLUGIN_NAME\icon-for-dark-theme.png
..\resources\images\PLUGIN_NAME\icon-for-light-theme.png
Yes that's what I am doing
It works for me with your plugin Check books but it's not working with @JimmXinu plugin for example.

If someone has the time to check does light and dark theming work with calibre example plugin? https://calibre-ebook.com/downloads/...emo_plugin.zip

Sorry I don't get why I can't get it to work...

And to make things more complicated, I saw that in FanFicFare code, the comments say :
Code:
        # For theme creators, use:
        # FanFicFare/images/icon.png
        # (optionally)
        # FanFicFare/images/icon-for-dark-theme.png
        # FanFicFare/images/icon-for-light-theme.png
But I can use indifferently FanFicFare/images/icon.png or FanFicFare/icon.png and it works but FanFicFare/images/icon-for-dark-theme.png or FanFicFare/icon-for-dark-theme.png doesn't for me.
Nicolas F is offline   Reply With Quote