When using a backdrop for the playqueue initially fill with the base

colour (taking window state into account)
This commit is contained in:
Craig Drummond
2017-09-09 10:50:35 +01:00
committed by Craig Drummond
parent 498d62b724
commit 7542b77672

View File

@@ -465,7 +465,7 @@ void PlayQueueView::drawBackdrop(QWidget *widget, const QSize &size)
QPainter p(widget);
p.fillRect(0, 0, size.width(), size.height(), QApplication::palette().color(QPalette::Base));
p.fillRect(0, 0, size.width(), size.height(), QApplication::palette().color(topLevelWidget()->isActiveWindow() ? QPalette::Active : QPalette::Inactive, QPalette::Base));
if (!curentCover.isNull() || !previousBackground.isNull()) {
if (!curentCover.isNull() && (size!=lastBgndSize || curentBackground.isNull())) {
curentBackground = QPixmap::fromImage(curentCover.scaled(size, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation));