From e2063fe78b88daec4cdd68b949d559e8100df2a0 Mon Sep 17 00:00:00 2001 From: Arun Narayanankutty Date: Thu, 10 Sep 2015 11:11:43 -0500 Subject: [PATCH] volume text color palette This modification makes the volume percentage text color match general text color. --- src/widgets/sliderwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/sliderwidget.cpp b/src/widgets/sliderwidget.cpp index b9d6b432a..c7e94cb0a 100644 --- a/src/widgets/sliderwidget.cpp +++ b/src/widgets/sliderwidget.cpp @@ -307,7 +307,8 @@ void Amarok::VolumeSlider::paintEvent(QPaintEvent*) { m_handlePixmaps[m_animCount]); // Draw percentage number - p.setPen(palette().color(QPalette::Disabled, QPalette::Text).dark()); + QStyleOptionViewItem opt; + p.setPen(opt.palette.color(QPalette::Disabled, QPalette::Text)); QFont font; font.setPixelSize(9); p.setFont(font);