[QGIS Commit] r8505 - trunk/qgis/src/gui

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri May 23 13:02:47 EDT 2008


Author: timlinux
Date: 2008-05-23 13:02:47 -0400 (Fri, 23 May 2008)
New Revision: 8505

Modified:
   trunk/qgis/src/gui/qgsdetaileditemdelegate.cpp
Log:
make the highlight gradient a little less extreme

Modified: trunk/qgis/src/gui/qgsdetaileditemdelegate.cpp
===================================================================
--- trunk/qgis/src/gui/qgsdetaileditemdelegate.cpp	2008-05-23 17:00:24 UTC (rev 8504)
+++ trunk/qgis/src/gui/qgsdetaileditemdelegate.cpp	2008-05-23 17:02:47 UTC (rev 8505)
@@ -60,7 +60,7 @@
     {
       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 @@
     {
       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));



More information about the QGIS-commit mailing list