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:
@@ -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 );
|
||||||
|
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user