From 0e814da91c8e041897a4c3f7e6e9234bbc7c6f7a Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 17 Jul 2018 16:37:25 +0300 Subject: Move all files under src/ --- src/ui/ThemeManager.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/ui/ThemeManager.h (limited to 'src/ui/ThemeManager.h') diff --git a/src/ui/ThemeManager.h b/src/ui/ThemeManager.h new file mode 100644 index 00000000..d35ff754 --- /dev/null +++ b/src/ui/ThemeManager.h @@ -0,0 +1,31 @@ +#pragma once + +#include + +#include "Theme.h" + +class ThemeManager : public QCommonStyle +{ + Q_OBJECT + +public: + inline static ThemeManager &instance(); + + void setTheme(Theme *theme); + QColor themeColor(const QString &key) const; + +private: + ThemeManager(); + + ThemeManager(ThemeManager const &); + void operator=(ThemeManager const &); + + Theme *theme_; +}; + +inline ThemeManager & +ThemeManager::instance() +{ + static ThemeManager instance; + return instance; +} -- cgit 1.5.1