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);