![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 757
Karma: 2296998
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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,289
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No they run in worker processes and/or the command line.
|
![]() |
![]() |
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 757
Karma: 2296998
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 | 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 |