Skip to content

Commit 8a0e1ef

Browse files
committed
Indicate current color in color button swatch menus
1 parent e8e6e32 commit 8a0e1ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/gui/qgscolorswatchgrid.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ void QgsColorSwatchGrid::draw( QPainter &painter )
308308
{
309309
painter.setPen( highlight );
310310
}
311+
else if (( *colorIt ).first == mBaseColor )
312+
{
313+
//currently active color
314+
painter.setPen( QColor( 75, 75, 75 ) );
315+
}
311316
else
312317
{
313318
painter.setPen( QColor( 197, 197, 197 ) );

0 commit comments

Comments
 (0)