Use QPalette::HighlightedText instead QPalette::Text for track slider popup so slider's text color really contrast with slider's background color.
Fixes issue 1757.
This commit is contained in:
parent
a09165c392
commit
29cfe20160
|
@ -155,7 +155,7 @@ void TrackSliderPopup::UpdatePixmap() {
|
|||
p.drawPixmap(total_rect.topLeft(), background_cache_);
|
||||
|
||||
// Text
|
||||
p.setPen(palette().color(QPalette::Text));
|
||||
p.setPen(palette().color(QPalette::HighlightedText));
|
||||
p.setFont(font_);
|
||||
p.drawText(text_rect1, Qt::AlignHCenter, text_);
|
||||
|
||||
|
|
Loading…
Reference in New Issue