1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

* Fixed secondary text's color in PlaylistDelegate & PlaylistLargeItemDelegate.

This commit is contained in:
Christian Muehlhaeuser
2013-06-10 06:29:45 +02:00
parent 8246d9903a
commit 678ba4f403
2 changed files with 3 additions and 4 deletions

View File

@@ -255,7 +255,7 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
drawRichText( painter, opt, leftRect.adjusted( 0, boldFontMetrics.height() + 1, 0, 0 ), Qt::AlignTop, textDoc ); drawRichText( painter, opt, leftRect.adjusted( 0, boldFontMetrics.height() + 1, 0, 0 ), Qt::AlignTop, textDoc );
if ( !( option.state & QStyle::State_Selected || item->isPlaying() ) ) if ( !( option.state & QStyle::State_Selected || item->isPlaying() ) )
painter->setPen( Qt::gray ); painter->setPen( opt.palette.text().color().darker() );
textDoc.setHtml( lowerText ); textDoc.setHtml( lowerText );
textDoc.setDocumentMargin( 0 ); textDoc.setDocumentMargin( 0 );

View File

@@ -371,8 +371,7 @@ PlaylistDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
QColor c = painter->pen().color(); QColor c = painter->pen().color();
if ( !( option.state & QStyle::State_Selected && option.state & QStyle::State_Active ) ) if ( !( option.state & QStyle::State_Selected && option.state & QStyle::State_Active ) )
{ {
//FIXME const color painter->setPen( opt.palette.text().color().darker() );
painter->setPen( QColor( Qt::gray ).darker() );
} }
QRect rectText = option.rect.adjusted( option.fontMetrics.height() * 4.5, boldFontMetrics.height() + 6, -leftEdge - 10, -8 ); QRect rectText = option.rect.adjusted( option.fontMetrics.height() * 4.5, boldFontMetrics.height() + 6, -leftEdge - 10, -8 );
@@ -397,7 +396,7 @@ PlaylistWidget::PlaylistWidget( QWidget* parent )
: QListView( parent ) : QListView( parent )
{ {
m_overlay = new OverlayWidget( this ); m_overlay = new OverlayWidget( this );
/* LoadingSpinner* spinner = */ new LoadingSpinner( this ); new LoadingSpinner( this );
} }