slider is now appropriately a different color when the widget is disabled

This commit is contained in:
itsmattkc
2019-12-30 16:09:21 +11:00
parent f7dd751b54
commit cb194b02bc
+8
View File
@@ -26,6 +26,14 @@
SliderLabel::SliderLabel(QWidget *parent) :
QLabel(parent)
{
QPalette p = palette();
p.setColor(QPalette::Disabled,
QPalette::Highlight,
p.color(QPalette::Disabled, QPalette::ButtonText));
setPalette(p);
// Use highlight color as font color
setForegroundRole(QPalette::Highlight);