Perform initial refactoring work
Things that were once singletons are no longer singletons, but are instead stored in the "Application" singleton Some singletons still remain, and some renaming/renamespacing is left
This commit is contained in:
@@ -28,12 +28,6 @@ double getMultiplierByTheme(const QString &themeName)
|
||||
|
||||
} // namespace detail
|
||||
|
||||
ThemeManager &ThemeManager::getInstance()
|
||||
{
|
||||
static ThemeManager instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
ThemeManager::ThemeManager()
|
||||
: themeName("/appearance/theme/name", "Dark")
|
||||
, themeHue("/appearance/theme/hue", 0.0)
|
||||
@@ -42,8 +36,8 @@ ThemeManager::ThemeManager()
|
||||
|
||||
this->update();
|
||||
|
||||
this->themeName.connectSimple([this](auto) { this->update(); });
|
||||
this->themeHue.connectSimple([this](auto) { this->update(); });
|
||||
this->themeName.connectSimple([this](auto) { this->update(); }, false);
|
||||
this->themeHue.connectSimple([this](auto) { this->update(); }, false);
|
||||
}
|
||||
|
||||
void ThemeManager::update()
|
||||
|
||||
Reference in New Issue
Block a user