Replace QPalette::Background with QPalette::Window
This commit is contained in:
parent
1cec48e8f8
commit
da9d2f9417
@ -214,7 +214,7 @@ void MoodbarProxyStyle::Render(ComplexControl control, const QStyleOptionSlider*
|
|||||||
if (fade_source_.isNull()) {
|
if (fade_source_.isNull()) {
|
||||||
// Draw the normal slider into the fade source pixmap.
|
// Draw the normal slider into the fade source pixmap.
|
||||||
fade_source_ = QPixmap(option->rect.size());
|
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_);
|
QPainter p(&fade_source_);
|
||||||
QStyleOptionSlider opt_copy(*option);
|
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));
|
p.drawRect(border_rect.adjusted(0, 0, -1, -1));
|
||||||
|
|
||||||
// Draw the outer bit
|
// 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));
|
p.drawRect(rect.adjusted(1, 1, -2, -2));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user