Replace use of QPalette::background with QPalette::window

This commit is contained in:
Jonas Kvinge 2020-01-04 23:01:02 +01:00
parent 28bbb74c26
commit 4c157a95dd
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ void NowPlayingWidget::SetImage(const QImage& image) {
if (visible_) {
// Cache the current pixmap so we can fade between them
previous_track_ = QPixmap(size());
previous_track_.fill(palette().background().color());
previous_track_.fill(palette().window().color());
previous_track_opacity_ = 1.0;
QPainter p(&previous_track_);
DrawContents(&p);