diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index e84ae9e02..b2833f283 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -1117,6 +1117,7 @@ bool OBSApp::SetTheme(std::string name, std::string path) } } + setStyleSheet(defaultStyleSheet); QString mpath = QString("file:///") + path.c_str(); setPalette(defaultPalette); ParseExtraThemeData(path.c_str()); @@ -1132,6 +1133,7 @@ bool OBSApp::SetTheme(std::string name, std::string path) bool OBSApp::InitTheme() { defaultPalette = palette(); + defaultStyleSheet = styleSheet(); const char *themeName = config_get_string(globalConfig, "General", "CurrentTheme2"); diff --git a/UI/obs-app.hpp b/UI/obs-app.hpp index 1d76fe38b..c058989c2 100644 --- a/UI/obs-app.hpp +++ b/UI/obs-app.hpp @@ -74,6 +74,7 @@ class OBSApp : public QApplication { private: std::string locale; std::string theme; + QString defaultStyleSheet; bool themeDarkMode = true; ConfigFile globalConfig; TextLookup textLookup;