Some further tweaks to the switch widget to make it consistent between GUI themes

This commit is contained in:
Veronica K. B. Olsen
2020-05-04 20:58:50 +02:00
parent 1148936af6
commit c6ba779b05
+3
View File
@@ -118,6 +118,9 @@ class QSwitch(QAbstractButton):
trackOpacity = 1.0 trackOpacity = 1.0
else: else:
trackOpacity = 0.6 trackOpacity = 0.6
trackBrush = qPalette.shadow()
thumbBrush = qPalette.mid()
textColor = qPalette.shadow().color()
qPaint.setBrush(trackBrush) qPaint.setBrush(trackBrush)
qPaint.setOpacity(trackOpacity) qPaint.setOpacity(trackOpacity)