View Single Post
Old 06-29-2022, 07:20 AM   #69
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,302
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
@thiago: I dont see why the portable and installed version would behave differently. There is no code difference in them as far as handling icons is concerned. Try cleaning out your calibre config folder temporarily and seeing if that changes things.
Thanks, that gave me hint. I did what you asked and everything worked fine again, so I decided to look at my config folder files and noticed this two files: "icons-any.rcc" and "icons-dark.rcc". The light icons were missing. Then, I selected the theme for light only on the UI and it worked again. Is that a bug? I mean, if the user chooses only a theme for dark mode, shouldn't the switch work as normal using the default light theme?

Also, I have one question: when the user changes from light to dark (or the other way around), does calibre emit any signal for the plugin to catch? My plugin has built-in themes but, without a signal, it only changes when calibre is restarted.
thiago.eec is offline