From 44ed1d44dd0d1a2ca7302975eee6bfa37d76105d Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 16 Jun 2014 14:44:48 +0200 Subject: [PATCH] * Use mid color instead of self-calculated text color value in charts delegate. --- src/libtomahawk/playlist/PlaylistChartItemDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/PlaylistChartItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistChartItemDelegate.cpp index 8db316380..baed78001 100644 --- a/src/libtomahawk/playlist/PlaylistChartItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistChartItemDelegate.cpp @@ -172,7 +172,7 @@ PlaylistChartItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& QRect figureRect = r.adjusted( 0, 0, -option.rect.width() + 60 - 6 + r.left(), 0 ); painter->setFont( figureFont ); - painter->setPen( option.palette.text().color().lighter( 450 ) ); + painter->setPen( option.palette.mid().color() ); painter->drawText( figureRect, QString::number( index.row() + 1 ), m_centerOption ); painter->setPen( opt.palette.text().color() );