You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nheko/include/ui/ThemeManager.h

32 lines
534 B

#pragma once
8 years ago
#include <QCommonStyle>
#include "Theme.h"
class ThemeManager : public QCommonStyle
{
Q_OBJECT
8 years ago
public:
inline static ThemeManager &instance();
8 years ago
void setTheme(Theme *theme);
QColor themeColor(const QString &key) const;
8 years ago
private:
ThemeManager();
8 years ago
ThemeManager(ThemeManager const &);
void operator=(ThemeManager const &);
8 years ago
Theme *theme_;
8 years ago
};
inline ThemeManager &
ThemeManager::instance()
8 years ago
{
static ThemeManager instance;
return instance;
8 years ago
}