Replace QPalette::Background with QPalette::Window

This commit is contained in:
Jonas Kvinge 2020-07-18 04:25:29 +02:00
parent 1cec48e8f8
commit da9d2f9417
1 changed files with 2 additions and 2 deletions

View File

@ -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));