Skip to content
Snippets Groups Projects
ThemeManager.cpp 338 B
Newer Older
  • Learn to ignore specific revisions
  • Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    #include <QFontDatabase>
    
    #include "ThemeManager.h"
    
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    ThemeManager::ThemeManager() { setTheme(new Theme); }
    
    void
    ThemeManager::setTheme(Theme *theme)
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    {
    
            theme_ = theme;
            theme_->setParent(this);
    
    QColor
    ThemeManager::themeColor(const QString &key) const
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    {
    
            Q_ASSERT(theme_);
            return theme_->getColor(key);
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    }