Commit 4e0aa19e authored by Dan Pascu's avatar Dan Pascu

Do not overwrite the disable text color for the StatusLabel

parent 0e2ae5e8
......@@ -248,8 +248,10 @@ class StatusLabel(QLabel):
if value is not None:
color = QColor(value.color)
palette = self.palette()
palette.setColor(QPalette.WindowText, color)
palette.setColor(QPalette.Text, color)
palette.setColor(QPalette.Active, QPalette.WindowText, color)
palette.setColor(QPalette.Active, QPalette.Text, color)
palette.setColor(QPalette.Inactive, QPalette.WindowText, color)
palette.setColor(QPalette.Inactive, QPalette.Text, color)
self.setPalette(palette)
self.setText(unicode(value))
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment