From 04175de726a9f488dfb9ec46fecdf1af16f772f1 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 9 Jan 2013 05:07:31 +0100 Subject: [PATCH] * Use the same color for drawing charts-position & album-position. --- src/libtomahawk/playlist/AlbumItemDelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/AlbumItemDelegate.cpp b/src/libtomahawk/playlist/AlbumItemDelegate.cpp index 2ba6700e2..51d75bf08 100644 --- a/src/libtomahawk/playlist/AlbumItemDelegate.cpp +++ b/src/libtomahawk/playlist/AlbumItemDelegate.cpp @@ -118,12 +118,12 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, QFontMetrics smallBoldFontMetrics( smallBoldFont ); painter->setFont( boldFont ); - painter->setPen( option.palette.text().color().lighter() ); + painter->setPen( option.palette.text().color().lighter( 450 ) ); QRect figureRect = r.adjusted( 4, 0, 0, 0 ); figureRect.setWidth( QFontMetrics( painter->font() ).width( "888" ) ); painter->drawText( figureRect, QString::number( index.row() + 1 ), QTextOption( Qt::AlignCenter ) ); - + r.adjust( figureRect.width() + 12, 0, 0, 0 ); QRect leftRect = r.adjusted( 0, 0, -48, 0 ); QRect rightRect = r.adjusted( r.width() - smallBoldFontMetrics.width( TomahawkUtils::timeToString( duration ) ), 0, 0, 0 );