Add missing base_color.

This commit is contained in:
Patrick Zimmermann 2012-12-11 21:02:41 +01:00
parent 97ecefedff
commit e87fe82572

View File

@ -126,6 +126,7 @@ class OpenLP(QtGui.QApplication):
# Correct stylesheet bugs
application_stylesheet = u''
if Settings().value(u'advanced/stylesheet fix', QtCore.QVariant(False)).toBool():
base_color = self.palette().color(QtGui.QPalette.Active, QtGui.QPalette.Base)
alternate_background_repair_stylesheet = \
u'QTableWidget, QListWidget, QTreeWidget {alternate-background-color: ' + base_color.name() + ';}\n'
application_stylesheet += alternate_background_repair_stylesheet