summaryrefslogtreecommitdiff
path: root/src/displayapp/InfiniTimeTheme.h
blob: 3b297c3cc92f9108d4289881a3d66e7fc77ded05 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once

#include <lvgl/lvgl.h>

namespace Colors {
  static constexpr lv_color_t primary = LV_COLOR_MAKE(0xff, 0x30, 0x50);

  static constexpr lv_color_t orange = LV_COLOR_MAKE(0xff, 0xb0, 0x0);
  static constexpr lv_color_t green = LV_COLOR_MAKE(0x0, 0xb0, 0x0);
  static constexpr lv_color_t violet = LV_COLOR_MAKE(0xb0, 0x0, 0xff);

  static constexpr lv_color_t lightGray = LV_COLOR_MAKE(0x23, 0x23, 0x23);

  static constexpr lv_color_t bg = LV_COLOR_MAKE(0x23, 0x23, 0x23);
  static constexpr lv_color_t bgAlt = LV_COLOR_MAKE(0x23, 0x23, 0x23);
  static constexpr lv_color_t bgDark = LV_COLOR_MAKE(0x23, 0x23, 0x23);
  static constexpr lv_color_t highlight = green;
};

/**
 * Initialize the default
 * @param color_primary the primary color of the theme
 * @param color_secondary the secondary color for the theme
 * @param flags ORed flags starting with `LV_THEME_DEF_FLAG_...`
 * @param font_small pointer to a small font
 * @param font_normal pointer to a normal font
 * @param font_subtitle pointer to a large font
 * @param font_title pointer to a extra large font
 * @return a pointer to reference this theme later
 */
lv_theme_t* lv_pinetime_theme_init(lv_color_t color_primary,
                                   lv_color_t color_secondary,
                                   uint32_t flags,
                                   const lv_font_t* font_small,
                                   const lv_font_t* font_normal,
                                   const lv_font_t* font_subtitle,
                                   const lv_font_t* font_title);