mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
* Make sure we paint white text on covers.
This commit is contained in:
@@ -194,9 +194,9 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
painter->drawRect( gradientRect );
|
painter->drawRect( gradientRect );
|
||||||
painter->restore();
|
painter->restore();
|
||||||
|
|
||||||
painter->setPen( opt.palette.color( QPalette::HighlightedText ) );
|
painter->setPen( Qt::white );
|
||||||
|
|
||||||
QRect textRect = option.rect.adjusted( 6, option.rect.height() - frameHeight, -4, -6 );
|
QRect textRect = option.rect.adjusted( 6, option.rect.height() - frameHeight, -6, -6 );
|
||||||
bool oneLiner = false;
|
bool oneLiner = false;
|
||||||
if ( bottom.isEmpty() )
|
if ( bottom.isEmpty() )
|
||||||
oneLiner = true;
|
oneLiner = true;
|
||||||
|
Reference in New Issue
Block a user