Revert "Don't error if dark mode is unavailable"
This reverts commit 5a9e871c12312c55355a9eb75df15c66bb4238ac.
This commit is contained in:
parent
227a71c154
commit
182477a73b
@ -521,15 +521,12 @@ class ConfigurationGetter(object):
|
||||
raise ImportError
|
||||
if QCoreApplication.instance() is None:
|
||||
self.app = QtWidgets.QApplication(sys.argv)
|
||||
try:
|
||||
if isWindows():
|
||||
from syncplay.vendor import darkdetect
|
||||
isDarkMode = darkdetect.isDark()
|
||||
if isDarkMode:
|
||||
self.app.setStyle(QtWidgets.QStyleFactory.create("fusion"))
|
||||
self.app.setPalette(self.getDarkPalette(QtGui))
|
||||
except:
|
||||
pass
|
||||
if isWindows():
|
||||
from syncplay.vendor import darkdetect
|
||||
isDarkMode = darkdetect.isDark()
|
||||
if isDarkMode:
|
||||
self.app.setStyle(QtWidgets.QStyleFactory.create("fusion"))
|
||||
self.app.setPalette(self.getDarkPalette(QtGui))
|
||||
qt5reactor.install()
|
||||
if isMacOS():
|
||||
import appnope
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user