fixed some light mode issues

This commit is contained in:
fourtf
2018-04-18 09:33:05 +02:00
parent 3446a623f5
commit 653e4c6adf
9 changed files with 31 additions and 19 deletions
+9 -4
View File
@@ -56,10 +56,6 @@ void SettingsDialog::initUi()
}
// ---- misc
QPalette palette;
palette.setColor(QPalette::Background, QColor("#444"));
this->setPalette(palette);
this->ui.tabContainerContainer->setObjectName("tabWidget");
this->ui.pageStack->setObjectName("pages");
@@ -166,6 +162,15 @@ void SettingsDialog::scaleChangedEvent(float newDpi)
this->ui.tabContainerContainer->setFixedWidth((int)(200 * newDpi));
}
void SettingsDialog::themeRefreshEvent()
{
BaseWindow::themeRefreshEvent();
QPalette palette;
palette.setColor(QPalette::Background, QColor("#444"));
this->setPalette(palette);
}
// void SettingsDialog::setChildrensFont(QLayout *object, QFont &font, int indent)
//{
// // for (QWidget *widget : this->widgets) {