From 6f4ace1dd4b9b34f95af1ba365b68624e209d147 Mon Sep 17 00:00:00 2001 From: ailurux Date: Mon, 28 Aug 2023 14:59:29 +1000 Subject: Custom themes and top bar styling --- src/ui/include/themes.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/ui/include') diff --git a/src/ui/include/themes.hpp b/src/ui/include/themes.hpp index 9af80c0d..ef0e719c 100644 --- a/src/ui/include/themes.hpp +++ b/src/ui/include/themes.hpp @@ -4,14 +4,24 @@ namespace ui { namespace themes { + + enum class Style { + kMenuItem, + kTopBar + }; class Theme { public: - Theme(); + void Apply(void); void Callback(lv_obj_t* obj); + void ApplyStyle(lv_obj_t* obj, Style style); + + static auto instance() -> Theme*; private: + Theme(); lv_style_t button_style_; + lv_style_t button_style_focused_; lv_theme_t theme_; }; } // namespace themes -- cgit v1.2.3