1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

* Use brighter color for artist names in PlaylistLargeItemDelegate.

This commit is contained in:
Christian Muehlhaeuser
2013-10-06 07:31:36 +02:00
parent 97e202a24e
commit fd6f2940d3

View File

@@ -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() );