aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/ThemeManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/ThemeManager.hpp')
-rw-r--r--include/cru/ui/ThemeManager.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/cru/ui/ThemeManager.hpp b/include/cru/ui/ThemeManager.hpp
new file mode 100644
index 00000000..c9e17680
--- /dev/null
+++ b/include/cru/ui/ThemeManager.hpp
@@ -0,0 +1,27 @@
+#pragma once
+#include "Base.hpp"
+#include "cru/common/Base.hpp"
+#include "cru/common/Event.hpp"
+
+#include <boost/property_tree/ptree.hpp>
+#include <cstddef>
+
+namespace cru::ui {
+class ThemeManager : public Object {
+ public:
+ ThemeManager();
+
+ CRU_DELETE_COPY(ThemeManager)
+ CRU_DELETE_MOVE(ThemeManager)
+
+ ~ThemeManager() override;
+
+ IEvent<std::nullptr_t>* ThemeResourceChangeEvent() {
+ return &theme_resource_change_event_;
+ }
+
+ private:
+ Event<std::nullptr_t> theme_resource_change_event_;
+ boost::property_tree::iptree theme_tree_;
+};
+} // namespace cru::ui