summary refs log tree commit diff
path: root/src/ui/ThemeManager.cc
blob: 172ddc41e6cdae5d85c98e61b15acfd9c118d5ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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);
}