port InterfaceSettings to the new config system.

This commit is contained in:
Arisotura
2024-05-24 22:52:43 +02:00
parent 28e4d39363
commit 5855e93f43
9 changed files with 57 additions and 47 deletions

View File

@ -335,9 +335,13 @@ int main(int argc, char** argv)
systemThemeName = new QString(QApplication::style()->objectName());
if (!Config::UITheme.empty())
{
QApplication::setStyle(QString::fromStdString(Config::UITheme));
Config::Table cfg = Config::GetGlobalTable();
QString uitheme = cfg.GetQString("UITheme");
if (!uitheme.isEmpty())
{
QApplication::setStyle(uitheme);
}
}
/* mainWindow = new MainWindow();