Use text colour for LED border
This commit is contained in:
@@ -82,7 +82,7 @@ class StatusLED(QAbstractButton):
|
|||||||
"""Draw the LED."""
|
"""Draw the LED."""
|
||||||
painter = QPainter(self)
|
painter = QPainter(self)
|
||||||
painter.setRenderHint(QtPaintAnitAlias, True)
|
painter.setRenderHint(QtPaintAnitAlias, True)
|
||||||
painter.setPen(self.palette().mid().color())
|
painter.setPen(self.palette().windowText().color())
|
||||||
painter.setBrush(self._color)
|
painter.setBrush(self._color)
|
||||||
painter.setOpacity(1.0)
|
painter.setOpacity(1.0)
|
||||||
painter.drawEllipse(
|
painter.drawEllipse(
|
||||||
|
|||||||
Reference in New Issue
Block a user