Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Indicate current color in color button swatch menus
  • Loading branch information
nyalldawson committed Oct 6, 2014
1 parent e8e6e32 commit 8a0e1ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgscolorswatchgrid.cpp
Expand Up @@ -308,6 +308,11 @@ void QgsColorSwatchGrid::draw( QPainter &painter )
{
painter.setPen( highlight );
}
else if (( *colorIt ).first == mBaseColor )
{
//currently active color
painter.setPen( QColor( 75, 75, 75 ) );
}
else
{
painter.setPen( QColor( 197, 197, 197 ) );
Expand Down

0 comments on commit 8a0e1ef

Please sign in to comment.