Skip to content
Permalink
Browse files

[themes] Use widget's palette when drawing text for color ramp button

  • Loading branch information
nirvn committed Jan 1, 2019
1 parent 43f8b46 commit 4793241ad29f029b4bf136f964056661632d7786
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgscolorrampbutton.cpp
@@ -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 );

0 comments on commit 4793241

Please sign in to comment.
You can’t perform that action at this time.