mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
use a grey instead of blue for osx selection rect
This commit is contained in:
@@ -29,11 +29,11 @@ void SettingsListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
|||||||
QPainterPath p;
|
QPainterPath p;
|
||||||
p.addRoundedRect( opt.rect.adjusted( 2, 1, -1, -1 ), 5, 5 );
|
p.addRoundedRect( opt.rect.adjusted( 2, 1, -1, -1 ), 5, 5 );
|
||||||
|
|
||||||
QColor c = opt.palette.color( QPalette::Highlight );
|
QColor fill( 214, 214, 214 );
|
||||||
painter->setPen( c.darker( 150 ) );
|
QColor border( 107, 107, 107 );
|
||||||
|
painter->setPen( border );
|
||||||
painter->drawPath( p );
|
painter->drawPath( p );
|
||||||
c.setAlpha( 200 );
|
painter->fillPath( p, fill );
|
||||||
painter->fillPath( p, c.lighter( 150 ) );
|
|
||||||
|
|
||||||
painter->restore();
|
painter->restore();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user