Replace QPalette::Background with QPalette::Window

This commit is contained in:
Jonas Kvinge
2020-07-18 04:12:50 +02:00
parent 4328831fcd
commit 9b8bfdf33c
6 changed files with 11 additions and 13 deletions

View File

@@ -241,7 +241,7 @@ void VolumeSlider::generateGradient() {
QPainter p(&gradient_image);
QLinearGradient gradient(gradient_image.rect().topLeft(), gradient_image.rect().topRight());
gradient.setColorAt(0, palette().color(QPalette::Background));
gradient.setColorAt(0, palette().color(QPalette::Window));
gradient.setColorAt(1, palette().color(QPalette::Highlight));
p.fillRect(gradient_image.rect(), QBrush(gradient));