Skip to content

Commit 650ca8a

Browse files
committedJan 4, 2019
[themes] Use widget's palette when drawing text for color ramp button
1 parent 744d350 commit 650ca8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/qgscolorrampbutton.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ void QgsColorRampButton::setButtonBackground( QgsColorRamp *colorramp )
553553
pm.fill( Qt::transparent );
554554

555555
QPainter painter;
556-
QPen pen = ( QApplication::palette().buttonText().color() );
556+
QPen pen = ( palette().buttonText().color() );
557557

558558
painter.begin( &pm );
559559
painter.setPen( pen );

0 commit comments

Comments
 (0)
Please sign in to comment.