Skip to content

Commit

Permalink
make the highlight gradient a little less extreme
Browse files Browse the repository at this point in the history
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.
4 changes: 2 additions & 2 deletions src/gui/qgsdetaileditemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 27e68b4

Please sign in to comment.