mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Use the same color for drawing charts-position & album-position.
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user