Some further tweaks to the switch widget to make it consistent between GUI themes
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user