diff --git a/src/components/other/colors/Colors.cpp b/src/components/other/colors/Colors.cpp index 79ffc8143..d5d0433e4 100644 --- a/src/components/other/colors/Colors.cpp +++ b/src/components/other/colors/Colors.cpp @@ -34,6 +34,10 @@ using namespace std; // ============================================================================= Colors::Colors (QObject *parent) : QObject(parent) { + QObject::connect(CoreManager::getInstance(), &CoreManager::coreCreated, this, &Colors::overrideColors); +} + +void Colors::overrideColors () { shared_ptr config = CoreManager::getInstance()->getCore()->getConfig(); const QMetaObject *info = metaObject(); diff --git a/src/components/other/colors/Colors.hpp b/src/components/other/colors/Colors.hpp index 846776422..7984c80bf 100644 --- a/src/components/other/colors/Colors.hpp +++ b/src/components/other/colors/Colors.hpp @@ -120,6 +120,9 @@ signals: void colorTzChanged (const QColor &color); void colorTerrorChanged (const QColor &color); + +private: + void overrideColors (); }; // -----------------------------------------------------------------------------