From 67763df201d654a40d57e5df6a6468943d07977a Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Sat, 13 Aug 2011 17:20:05 -0400 Subject: [PATCH] use a grey instead of blue for osx selection rect --- src/settingslistdelegate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settingslistdelegate.cpp b/src/settingslistdelegate.cpp index 195c8ef76..032fe6d4f 100644 --- a/src/settingslistdelegate.cpp +++ b/src/settingslistdelegate.cpp @@ -29,11 +29,11 @@ void SettingsListDelegate::paint(QPainter *painter, const QStyleOptionViewItem & QPainterPath p; p.addRoundedRect( opt.rect.adjusted( 2, 1, -1, -1 ), 5, 5 ); - QColor c = opt.palette.color( QPalette::Highlight ); - painter->setPen( c.darker( 150 ) ); + QColor fill( 214, 214, 214 ); + QColor border( 107, 107, 107 ); + painter->setPen( border ); painter->drawPath( p ); - c.setAlpha( 200 ); - painter->fillPath( p, c.lighter( 150 ) ); + painter->fillPath( p, fill ); painter->restore(); }