matrixion/src/ui/ThemeManager.cc

21 lines
311 B
C++
Raw Normal View History

2017-04-06 02:06:42 +03:00
#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);
}