Skip to content

Commit 27e68b4

Browse files
author
timlinux
committedMay 23, 2008
make the highlight gradient a little less extreme
git-svn-id: http://svn.osgeo.org/qgis/trunk@8505 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2bfd88a commit 27e68b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgsdetaileditemdelegate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void QgsDetailedItemDelegate::paint(QPainter * thepPainter,
6060
{
6161
QColor myColor1 = theOption.palette.highlight();
6262
QColor myColor2 = myColor1;
63-
myColor2 = myColor2.lighter();
63+
myColor2 = myColor2.lighter(110); //10% lighter
6464
QLinearGradient myGradient(QPointF(0,theOption.rect.y()),
6565
QPointF(0,theOption.rect.y() + mpWidget->height()));
6666
myGradient.setColorAt(0, myColor1);
@@ -109,7 +109,7 @@ void QgsDetailedItemDelegate::paint(QPainter * thepPainter,
109109
{
110110
QColor myColor1 = theOption.palette.highlight();
111111
QColor myColor2 = myColor1;
112-
myColor2 = myColor2.lighter();
112+
myColor2 = myColor2.lighter(110); //10% lighter
113113
int myHeight = myMetrics.height() + myVerticalSpacer;
114114
QLinearGradient myGradient(QPointF(0,theOption.rect.y()),
115115
QPointF(0,theOption.rect.y() + myHeight*2));

0 commit comments

Comments
 (0)
Please sign in to comment.