mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix calibre not using system color scheme
Apparently on windows and OS X if the application style is set before the application object is constructed the system color scheme is not read.
This commit is contained in:
parent
8945e3b506
commit
cc53b3c203
@ -900,8 +900,8 @@ class Application(QApplication):
|
||||
args.extend(['-platformpluginpath', sys.extensions_location, '-platform', 'headless'])
|
||||
qargs = [i.encode('utf-8') if isinstance(i, unicode) else i for i in args]
|
||||
self.pi = plugins['progress_indicator'][0]
|
||||
self.setup_styles(force_calibre_style)
|
||||
QApplication.__init__(self, qargs)
|
||||
self.setup_styles(force_calibre_style)
|
||||
f = QFont(QApplication.font())
|
||||
if (f.family(), f.pointSize()) == ('Sans Serif', 9): # Hard coded Qt settings, no user preference detected
|
||||
f.setPointSize(10)
|
||||
|
Loading…
x
Reference in New Issue
Block a user