mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
background role is now window
This commit is contained in:
parent
2e24c1f36f
commit
ec4deaf594
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user