1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

darker background for highlight on osx

This commit is contained in:
Leo Franchi 2011-10-30 20:51:42 -04:00
parent b98d591077
commit 7829be0936

View File

@ -160,7 +160,11 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
if ( m_hoveringOver == index )
TomahawkUtils::drawQueryBackground( painter, opt.palette, r, 1.5 );
#ifdef Q_WS_MAC
painter->setPen( opt.palette.color( QPalette::Dark ).darker( 200 ) );
#else
painter->setPen( opt.palette.color( QPalette::Dark ) );
#endif
to.setAlignment( Qt::AlignHCenter | Qt::AlignBottom );
text = painter->fontMetrics().elidedText( item->album()->artist()->name(), Qt::ElideRight, textRect.width() - 3 );
painter->drawText( textRect, text, to );