DolphinQt: Set the theme before constructing the MainWindow, some panels that explicitly request palette colors get the wrong colors otherwise.

This commit is contained in:
Admiral H. Curtiss 2023-08-01 20:14:03 +02:00
parent d725aaa5bc
commit c2e29153e9
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

@ -245,10 +245,11 @@ int main(int argc, char* argv[])
{
DolphinAnalytics::Instance().ReportDolphinStart("qt");
MainWindow win{std::move(boot), static_cast<const char*>(options.get("movie"))};
Settings::Instance().InitDefaultPalette();
Settings::Instance().UpdateSystemDark();
Settings::Instance().SetCurrentUserStyle(Settings::Instance().GetCurrentUserStyle());
MainWindow win{std::move(boot), static_cast<const char*>(options.get("movie"))};
win.Show();
#if defined(USE_ANALYTICS) && USE_ANALYTICS