1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-02-03 04:37:33 +01:00

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

View File

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