diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-08-28 15:01:24 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-08-28 15:01:24 +1000 |
| commit | fa7fa98dc1a6d611dcc4badbfeebef307514a166 (patch) | |
| tree | d6d90f32508ae97609c87de7ccc6bf6ac8e2d2f2 /src/ui/include/themes.hpp | |
| parent | 85379b359cc0ffac0b113fd53bd2dbac8660c9a6 (diff) | |
| parent | db601935c6145445467692c0a4ff2b81e27cf6ce (diff) | |
| download | tangara-fw-fa7fa98dc1a6d611dcc4badbfeebef307514a166.tar.gz | |
Merge branch 'main' of git.sr.ht:~jacqueline/tangara-fw
Diffstat (limited to 'src/ui/include/themes.hpp')
| -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 |
