1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

* Make sure we paint white text on covers.

This commit is contained in:
Christian Muehlhaeuser 2012-12-18 09:36:12 +01:00
parent 9a1558f1e9
commit 5a52586945

View File

@ -194,9 +194,9 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
painter->drawRect( gradientRect );
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;
if ( bottom.isEmpty() )
oneLiner = true;