mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
changed color of score bars to match the rest of the color palette
BUG-252
This commit is contained in:
@@ -261,11 +261,7 @@ PlaylistItemDelegate::paintDetailed( QPainter* painter, const QStyleOptionViewIt
|
|||||||
|
|
||||||
if ( index.column() == TrackModel::Score )
|
if ( index.column() == TrackModel::Score )
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MAC // On Mac, highlight color is very bright and stands out a lot
|
|
||||||
QColor barColor( 167, 183, 211 ); // This matches the sidebar (sourcetreeview.cpp:672)
|
QColor barColor( 167, 183, 211 ); // This matches the sidebar (sourcetreeview.cpp:672)
|
||||||
#else
|
|
||||||
QColor barColor = opt.palette.highlight().color();
|
|
||||||
#endif
|
|
||||||
if ( opt.state & QStyle::State_Selected )
|
if ( opt.state & QStyle::State_Selected )
|
||||||
painter->setPen( opt.palette.brightText().color() );
|
painter->setPen( opt.palette.brightText().color() );
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user