From fd6f2940d3f91ef371126387c71285ea2a0578f2 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 6 Oct 2013 07:31:36 +0200 Subject: [PATCH] * Use brighter color for artist names in PlaylistLargeItemDelegate. --- src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp index 9c8707d06..ffd92058d 100644 --- a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp @@ -188,13 +188,13 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& textDoc.setDefaultFont( painter->font() ); textDoc.setDefaultTextOption( m_topOption ); + if ( !( option.state & QStyle::State_Selected || item->isPlaying() ) ) + painter->setPen( opt.palette.mid().color() ); + if ( textDoc.idealWidth() <= leftRect.width() ) drawRichText( painter, opt, leftRect.adjusted( 0, QFontMetrics( bigBoldFont ).height() + 1, 0, 0 ), Qt::AlignTop, textDoc ); - if ( !( option.state & QStyle::State_Selected || item->isPlaying() ) ) - painter->setPen( opt.palette.text().color().darker() ); - -//TODO: replace usage of lowerText which is not drawn any more with appropriate loveBox/sentBox style boxes + //TODO: replace usage of lowerText which is not drawn any more with appropriate loveBox/sentBox style boxes textDoc.setHtml( lowerText ); textDoc.setDocumentMargin( 0 ); textDoc.setDefaultFont( painter->font() );