Skip to content
Permalink
Browse files
make the highlight gradient a little less extreme
git-svn-id: http://svn.osgeo.org/qgis/trunk@8505 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed May 23, 2008
1 parent 2bfd88a commit 27e68b4
Showing 1 changed file with 2 additions and 2 deletions.
@@ -60,7 +60,7 @@ void QgsDetailedItemDelegate::paint(QPainter * thepPainter,
{
QColor myColor1 = theOption.palette.highlight();
QColor myColor2 = myColor1;
myColor2 = myColor2.lighter();
myColor2 = myColor2.lighter(110); //10% lighter
QLinearGradient myGradient(QPointF(0,theOption.rect.y()),
QPointF(0,theOption.rect.y() + mpWidget->height()));
myGradient.setColorAt(0, myColor1);
@@ -109,7 +109,7 @@ void QgsDetailedItemDelegate::paint(QPainter * thepPainter,
{
QColor myColor1 = theOption.palette.highlight();
QColor myColor2 = myColor1;
myColor2 = myColor2.lighter();
myColor2 = myColor2.lighter(110); //10% lighter
int myHeight = myMetrics.height() + myVerticalSpacer;
QLinearGradient myGradient(QPointF(0,theOption.rect.y()),
QPointF(0,theOption.rect.y() + myHeight*2));

0 comments on commit 27e68b4

Please sign in to comment.