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 744d350 commit 650ca8a3ae1e2da3da13f827fdfbe9b2548932bf
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 650ca8a

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