Skip to content
Permalink
Browse files

make the highlight gradient a little less extreme

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8505 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed May 23, 2008
1 parent ba2b737 commit ee70aa58cca5e1eb632771c57565c7d909760141
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsdetaileditemdelegate.cpp
@@ -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 ee70aa5

Please sign in to comment.
You can’t perform that action at this time.