|  11-25-2022, 09:48 AM | #1 | 
| Connoisseur       Posts: 64 Karma: 666 Join Date: May 2020 Location: Germany Device: android smartphone + tablet with Moon Reader and ReadEra Apps. | 
				
				Detect dark mode in GUI plugin
			 
			
			In https://www.mobileread.com/forums/sh...d.php?t=344290 is stated, than a metadata plugin cannot detect if the Calibre GUI is in dark mode. Can it be done by a GUI plugin?
		 | 
|   |   | 
|  11-25-2022, 11:41 AM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			yes, it can. QApplication.instance().is_dark_theme | 
|   |   | 
| Advert | |
|  | 
|  11-26-2022, 03:45 AM | #3 | 
| Connoisseur       Posts: 64 Karma: 666 Join Date: May 2020 Location: Germany Device: android smartphone + tablet with Moon Reader and ReadEra Apps. | 
			
			Thank you, Kovid!
		 | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Randomly changing from Dark Mode to Light Mode | C8H10N4O2 | Calibre | 2 | 07-28-2022 09:36 PM | 
| Dark mode checking for Metadata Source plugin | BeckyEbook | Development | 2 | 01-09-2022 03:32 AM | 
| Bug: Dark Mode (Windows) Book Details Pop-Up Cover Background Not Changing to Dark | cgrapski | Calibre | 7 | 05-03-2021 11:45 PM | 
| [GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |