From 8dc2e6b5fb73aac57d96da9e212107a5fdfafe8a Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 4 Jul 2018 21:05:13 -0700 Subject: [PATCH] UI: Add signal for when theme has changed --- UI/obs-app.cpp | 1 + UI/obs-app.hpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 77e59ea4c..ce106f521 100644 --- a/UI/obs-app.cpp +++ b/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; } diff --git a/UI/obs-app.hpp b/UI/obs-app.hpp index f0b2224cb..9fd7448a4 100644 --- a/UI/obs-app.hpp +++ b/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);