Use the highlighted text colour as the text colour of the currently playing song in the playlist view

This commit is contained in:
David Sansome 2012-02-02 20:33:40 +00:00
parent 04805de5c6
commit 845fe2122e
1 changed files with 1 additions and 2 deletions

View File

@ -378,8 +378,7 @@ void PlaylistView::drawRow(QPainter* painter, const QStyleOptionViewItem& option
is_paused ? currenttrack_pause_ : currenttrack_play_);
// Set the font
opt.palette.setColor(QPalette::Text, Qt::white);
opt.palette.setColor(QPalette::HighlightedText, Qt::white);
opt.palette.setColor(QPalette::Text, opt.palette.color(QPalette::HighlightedText));
opt.palette.setColor(QPalette::Highlight, Qt::transparent);
opt.palette.setColor(QPalette::AlternateBase, Qt::transparent);
opt.font.setItalic(true);