diff options
| author | ailurux <ailuruxx@gmail.com> | 2023-08-28 14:59:29 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2023-08-28 14:59:29 +1000 |
| commit | 6f4ace1dd4b9b34f95af1ba365b68624e209d147 (patch) | |
| tree | 0a880056b63d391dee467c2a6e3d1064b3a75a77 /src/ui/include | |
| parent | 0f5cf25e73fb2e789b472317966ff80323dddd75 (diff) | |
| download | tangara-fw-6f4ace1dd4b9b34f95af1ba365b68624e209d147.tar.gz | |
Custom themes and top bar styling
Diffstat (limited to 'src/ui/include')
| -rw-r--r-- | src/ui/include/themes.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
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 |
