summaryrefslogtreecommitdiff
path: root/src/ui/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/include')
-rw-r--r--src/ui/include/lvgl_task.hpp1
-rw-r--r--src/ui/include/themes.hpp18
2 files changed, 19 insertions, 0 deletions
diff --git a/src/ui/include/lvgl_task.hpp b/src/ui/include/lvgl_task.hpp
index 8e387683..c649c4b6 100644
--- a/src/ui/include/lvgl_task.hpp
+++ b/src/ui/include/lvgl_task.hpp
@@ -16,6 +16,7 @@
#include "display.hpp"
#include "relative_wheel.hpp"
#include "touchwheel.hpp"
+#include "themes.hpp"
namespace ui {
diff --git a/src/ui/include/themes.hpp b/src/ui/include/themes.hpp
new file mode 100644
index 00000000..9af80c0d
--- /dev/null
+++ b/src/ui/include/themes.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "lvgl.h"
+
+namespace ui {
+namespace themes {
+class Theme {
+ public:
+ Theme();
+ void Apply(void);
+ void Callback(lv_obj_t* obj);
+
+ private:
+ lv_style_t button_style_;
+ lv_theme_t theme_;
+};
+} // namespace themes
+} // namespace ui \ No newline at end of file