slider is now appropriately a different color when the widget is disabled
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user