View Single Post
Old 06-29-2022, 10:15 AM   #74
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,501
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@thiago: Looking at utils.py in your Check Books plugin that's not the actual code its using. Are you using a non-published version of the plugin?

You need to:

1) First look for QIcon.ic(PLUGIN_NAME + '/' + themed_name)
2) Then look for QIcon.ic(PLUGIN_NAME + '/' + non_themed_name)
3) Then look for get_icons('images/' + themed_name)

And note that with this approach your icons wont automatically change when going from light to dark mode you will have to listen to the signal and reset them manually.
kovidgoyal is offline