From da9d2f94177d222b0ae462cf8c76904328e3d05f Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 18 Jul 2020 04:25:29 +0200 Subject: [PATCH] Replace QPalette::Background with QPalette::Window --- src/moodbar/moodbarproxystyle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/moodbar/moodbarproxystyle.cpp b/src/moodbar/moodbarproxystyle.cpp index 10f5db659..d6c26b180 100644 --- a/src/moodbar/moodbarproxystyle.cpp +++ b/src/moodbar/moodbarproxystyle.cpp @@ -214,7 +214,7 @@ void MoodbarProxyStyle::Render(ComplexControl control, const QStyleOptionSlider* if (fade_source_.isNull()) { // Draw the normal slider into the fade source pixmap. fade_source_ = QPixmap(option->rect.size()); - fade_source_.fill(option->palette.color(QPalette::Active, QPalette::Background)); + fade_source_.fill(option->palette.color(QPalette::Active, QPalette::Window)); QPainter p(&fade_source_); QStyleOptionSlider opt_copy(*option); @@ -356,7 +356,7 @@ QPixmap MoodbarProxyStyle::MoodbarPixmap(const ColorVector& colors, const QSize& p.drawRect(border_rect.adjusted(0, 0, -1, -1)); // Draw the outer bit - p.setPen(QPen(palette.brush(QPalette::Active, QPalette::Background), kMarginSize, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin)); + p.setPen(QPen(palette.brush(QPalette::Active, QPalette::Window), kMarginSize, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin)); p.drawRect(rect.adjusted(1, 1, -2, -2));