View Single Post
Old 09-15-2023, 04:23 AM   #223
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
This doesn't work for me, but perhaps I am doing something wrong.

My steps:
  1. I grabbed interface_demo.zip and built it. I see the 'sun' icon. It uses
    Code:
    icon = get_icons('images/icon.png', 'Interface Plugin Demo')
    to fetch the icon.
  2. I created a directory in my config 'resources\images\Interface Plugin Demo\images'.
  3. I put a different 'icon.png' into that directory. Running calibre, I see that different icon.
  4. I put 'icon-for-light-theme.png' in that directory and removed (renamed) 'icon.png'. I now see the default 'sun' icon.
Is this the expected behavior?
chaley is offline   Reply With Quote