matrixion/src/ui/ThemeManager.cc
Konstantinos Sideris 2644e4acca Small style change
2017-08-20 13:47:22 +03:00

22 lines
311 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);
}