diff --git a/openlp/core/__init__.py b/openlp/core/__init__.py index 647398934..23f129ad0 100644 --- a/openlp/core/__init__.py +++ b/openlp/core/__init__.py @@ -60,7 +60,7 @@ __all__ = [u'OpenLP', u'main'] log = logging.getLogger() -application_stylesheet = u""" +nt_repair_stylesheet = u""" QMainWindow::separator { border: none; @@ -128,8 +128,16 @@ class OpenLP(QtGui.QApplication): if FirstTimeForm(screens).exec_() == QtGui.QDialog.Accepted: Settings().setValue(u'general/has run wizard', QtCore.QVariant(True)) + # Correct stylesheet bugs if os.name == u'nt': + base_color = self.palette().color(QtGui.QPalette.Active, + QtGui.QPalette.Base) + application_stylesheet = \ + u'* {alternate-background-color: ' + \ + base_color.name() + ';}\n' + application_stylesheet += nt_repair_stylesheet self.setStyleSheet(application_stylesheet) + # show the splashscreen show_splash = Settings().value( u'general/show splash', QtCore.QVariant(True)).toBool() if show_splash: