Set css on specific widgets

This commit is contained in:
Jonathan Corwin 2012-12-06 22:06:59 +00:00
parent 0485e967ad
commit 1c651abea2

View File

@ -133,7 +133,8 @@ class OpenLP(QtGui.QApplication):
base_color = self.palette().color(QtGui.QPalette.Active, base_color = self.palette().color(QtGui.QPalette.Active,
QtGui.QPalette.Base) QtGui.QPalette.Base)
application_stylesheet = \ application_stylesheet = \
u'* {alternate-background-color: ' + \ u'QTableWidget, QListWidget, QTreeWidget ' + \
u'{alternate-background-color: ' + \
base_color.name() + ';}\n' base_color.name() + ';}\n'
application_stylesheet += nt_repair_stylesheet application_stylesheet += nt_repair_stylesheet
self.setStyleSheet(application_stylesheet) self.setStyleSheet(application_stylesheet)