summaryrefslogtreecommitdiff
path: root/src/ui/include/themes.hpp
blob: ee4bb05d88577ff84a59195c9ecb609fe5cebe4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "lvgl.h"

namespace ui {
namespace themes {

enum class Style { kMenuItem, kTopBar };
class Theme {
 public:
  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
}  // namespace ui