diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-05-02 19:12:26 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-05-02 19:12:26 +1000 |
| commit | 1573a8c4cde1cd9528b422b2dcc598e37ffe94a7 (patch) | |
| tree | d162822b8fd7054f81bace0c7a65ab4d5e6f93ef /src/ui/include/themes.hpp | |
| parent | a231fd1c8afedbeb14b0bc77d76bad61db986059 (diff) | |
| download | tangara-fw-1573a8c4cde1cd9528b422b2dcc598e37ffe94a7.tar.gz | |
WIP merge cyclically dependent components into one big component
Diffstat (limited to 'src/ui/include/themes.hpp')
| -rw-r--r-- | src/ui/include/themes.hpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/ui/include/themes.hpp b/src/ui/include/themes.hpp deleted file mode 100644 index 09b9cdce..00000000 --- a/src/ui/include/themes.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include <string> -#include <map> -#include <vector> -#include "lvgl.h" - -namespace ui { -namespace themes { - -enum class Style { - kMenuItem, - kMenuSubheadFirst, - kMenuSubhead, - kTopBar, - kPopup, - kTab, - kButtonPrimary, -}; - -class Theme { - public: - void Apply(void); - void Callback(lv_obj_t* obj); - void ApplyStyle(lv_obj_t* obj, std::string style_key); - - void AddStyle(std::string key, int selector, lv_style_t* style); - - static auto instance() -> Theme*; - - private: - Theme(); - std::map<std::string, std::vector<std::pair<int, lv_style_t*>>> style_map; - lv_theme_t theme_; - -}; -} // namespace themes -} // namespace ui |
