matrixion/src/ui/ThemeManager.cpp
2018-07-17 16:37:25 +03:00

19 lines
338 B
C++

#include <QFontDatabase>
#include "ThemeManager.h"
ThemeManager::ThemeManager() { setTheme(new Theme); }
void
ThemeManager::setTheme(Theme *theme)
{
theme_ = theme;
theme_->setParent(this);
}
QColor
ThemeManager::themeColor(const QString &key) const
{
Q_ASSERT(theme_);
return theme_->getColor(key);
}