01-08-2022, 06:53 AM | #1 |
Guru
Posts: 771
Karma: 2297170
Join Date: Jan 2017
Location: Poland
Device: Various
|
Dark mode checking for Metadata Source plugin
Can Metadata Source plugin detect if calibre is running in dark mode?
When checking: Code:
is_dark_theme = QApplication.instance().is_dark_theme |
01-08-2022, 09:18 AM | #2 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No they run in worker processes and/or the command line.
|
01-09-2022, 03:32 AM | #3 |
Guru
Posts: 771
Karma: 2297170
Join Date: Jan 2017
Location: Poland
Device: Various
|
I see. I solved this by saving the information about the used dark theme directly in the plugin configuration, so the user can turn it on and off himself.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] noosfere DB | lrpirlet | Plugins | 12 | 08-20-2022 04:14 PM |
Read a book's metadata in a Metadata source plugin? | J-H | Development | 2 | 03-30-2021 09:08 AM |
[Metadata Source Plugin] Biblionet.gr | wrangly | Plugins | 13 | 01-21-2021 07:46 AM |
[Metadata Source Plugin] Empty Plugin? (Fake Identifier) | mneimeyer | Plugins | 3 | 11-11-2019 08:07 PM |
[Metadata Source Plugin] Bookradar | idlesign | Plugins | 0 | 11-03-2014 11:44 PM |