background role is now window

This commit is contained in:
Luis Ángel San Martín 2021-10-07 22:21:43 +02:00
parent 2e24c1f36f
commit ec4deaf594
5 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ AddLabelDialog::AddLabelDialog(QWidget *parent)
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_light.png"), tr("light")));
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_dark.png"), tr("dark")));
QColor backgroundColor = this->palette().background().color();
QColor backgroundColor = this->palette().window().color();
list->setStyleSheet(QString("QListWidget {border : none; background-color: rgb(%1,%2,%3);}").arg(backgroundColor.red()).arg(backgroundColor.green()).arg(backgroundColor.blue()));
list->setMinimumHeight(225);

View File

@ -364,7 +364,7 @@ void ClassicComicsView::setupSearchingIcon()
searchingIcon->setLayout(h);
QPalette pal(searchingIcon->palette());
pal.setColor(QPalette::Background, Qt::black);
pal.setColor(QPalette::Window, Qt::black);
searchingIcon->setAutoFillBackground(true);
searchingIcon->setPalette(pal);

View File

@ -20,7 +20,7 @@ ComicFlowWidgetSW::ComicFlowWidgetSW(QWidget *parent)
// TODO eleminar "padding"
QPalette Pal(palette());
// set black background
Pal.setColor(QPalette::Background, Qt::black);
Pal.setColor(QPalette::Window, Qt::black);
setAutoFillBackground(true);
setPalette(Pal);

View File

@ -87,7 +87,7 @@ ImportWidget::ImportWidget(QWidget *parent)
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
QPalette p(palette());
p.setColor(QPalette::Background, QColor(250, 250, 250));
p.setColor(QPalette::Window, QColor(250, 250, 250));
setAutoFillBackground(true);
setPalette(p);

View File

@ -11,7 +11,7 @@ NoLibrariesWidget::NoLibrariesWidget(QWidget *parent)
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
QPalette p(palette());
p.setColor(QPalette::Background, QColor(250, 250, 250));
p.setColor(QPalette::Window, QColor(250, 250, 250));
setAutoFillBackground(true);
setPalette(p);