Browse Source

UI: Add signal for when theme has changed

jp9000 7 years ago
parent
commit
8dc2e6b5fb
2 changed files with 4 additions and 0 deletions
  1. 1 0
      UI/obs-app.cpp
  2. 3 0
      UI/obs-app.hpp

+ 1 - 0
UI/obs-app.cpp

@@ -994,6 +994,7 @@ bool OBSApp::SetTheme(std::string name, std::string path)
 	setStyleSheet(mpath);
 	ParseExtraThemeData(path.c_str());
 
+	emit StyleChanged();
 	return true;
 }
 

+ 3 - 0
UI/obs-app.hpp

@@ -165,6 +165,9 @@ public:
 	{
 		translatorHooks.pop_front();
 	}
+
+signals:
+	void StyleChanged();
 };
 
 int GetConfigPath(char *path, size_t size, const char *name);