summary refs log tree commit diff
path: root/src/ui/ThemeManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ThemeManager.cpp')
-rw-r--r--src/ui/ThemeManager.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ui/ThemeManager.cpp b/src/ui/ThemeManager.cpp
new file mode 100644

index 00000000..7baed1f3 --- /dev/null +++ b/src/ui/ThemeManager.cpp
@@ -0,0 +1,19 @@ +#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); +}