parent
5dcfd11928
commit
524c124dfd
|
@ -526,6 +526,7 @@ void MainWindow::loadSelectedTheme(bool reloadOnlyStyleCss)
|
|||
{
|
||||
BridgeSettingSet("Theme", "Selected", appsUseLightTheme ? "Default" : "Dark");
|
||||
BridgeSettingSetUint("Theme", "AppsUseLightTheme", appsUseLightTheme);
|
||||
reloadOnlyStyleCss = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -615,6 +616,7 @@ void MainWindow::loadSelectedTheme(bool reloadOnlyStyleCss)
|
|||
}
|
||||
|
||||
// Skip changing the settings when only reloading the CSS
|
||||
// On startup we want to preserve the user's appearance
|
||||
if(reloadOnlyStyleCss)
|
||||
return;
|
||||
|
||||
|
|
|
@ -181,8 +181,8 @@ int main(int argc, char* argv[])
|
|||
appPalette.setColor(QPalette::Link, ConfigColor("LinkColor"));
|
||||
application.setPalette(appPalette);
|
||||
|
||||
// Load the selected style
|
||||
MainWindow::loadSelectedTheme();
|
||||
// Load the selected theme
|
||||
MainWindow::loadSelectedTheme(true);
|
||||
|
||||
// Register custom data types
|
||||
qRegisterMetaType<dsint>("dsint");
|
||||
|
|
Loading…
Reference in New Issue