Merge pull request #5030 from narunlifescience/master

volume text color palette
This commit is contained in:
John Maguire 2015-09-10 18:22:43 +01:00
commit f657f438ff
1 changed files with 5 additions and 4 deletions

View File

@ -307,10 +307,11 @@ void Amarok::VolumeSlider::paintEvent(QPaintEvent*) {
m_handlePixmaps[m_animCount]);
// Draw percentage number
p.setPen(palette().color(QPalette::Disabled, QPalette::Text).dark());
QFont font;
font.setPixelSize(9);
p.setFont(font);
QStyleOptionViewItem opt;
p.setPen(opt.palette.color(QPalette::Disabled, QPalette::Text));
QFont vol_font(opt.font);
vol_font.setPixelSize(9);
p.setFont(vol_font);
const QRect rect(0, 0, 34, 15);
p.drawText(rect, Qt::AlignRight | Qt::AlignVCenter,
QString::number(value()) + '%');