mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 07:19:42 +01:00
* Fixed secondary text's color in PlaylistDelegate & PlaylistLargeItemDelegate.
This commit is contained in:
parent
8246d9903a
commit
678ba4f403
@ -255,7 +255,7 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
|
||||
drawRichText( painter, opt, leftRect.adjusted( 0, boldFontMetrics.height() + 1, 0, 0 ), Qt::AlignTop, textDoc );
|
||||
|
||||
if ( !( option.state & QStyle::State_Selected || item->isPlaying() ) )
|
||||
painter->setPen( Qt::gray );
|
||||
painter->setPen( opt.palette.text().color().darker() );
|
||||
|
||||
textDoc.setHtml( lowerText );
|
||||
textDoc.setDocumentMargin( 0 );
|
||||
|
@ -371,8 +371,7 @@ PlaylistDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
||||
QColor c = painter->pen().color();
|
||||
if ( !( option.state & QStyle::State_Selected && option.state & QStyle::State_Active ) )
|
||||
{
|
||||
//FIXME const color
|
||||
painter->setPen( QColor( Qt::gray ).darker() );
|
||||
painter->setPen( opt.palette.text().color().darker() );
|
||||
}
|
||||
|
||||
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 )
|
||||
{
|
||||
m_overlay = new OverlayWidget( this );
|
||||
/* LoadingSpinner* spinner = */ new LoadingSpinner( this );
|
||||
new LoadingSpinner( this );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user