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:
parent
28bbb74c26
commit
4c157a95dd
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user