Skip to content

Commit

Permalink
[themes] Use widget's palette when drawing text for color ramp button
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 1, 2019
1 parent 43f8b46 commit 4793241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgscolorrampbutton.cpp
Expand Up @@ -553,7 +553,7 @@ void QgsColorRampButton::setButtonBackground( QgsColorRamp *colorramp )
pm.fill( Qt::transparent );

QPainter painter;
QPen pen = ( QApplication::palette().buttonText().color() );
QPen pen = ( palette().buttonText().color() );

painter.begin( &pm );
painter.setPen( pen );
Expand Down

0 comments on commit 4793241

Please sign in to comment.