2022-07-31 05:19:20 +00:00
|
|
|
#pragma once
|
2021-01-28 17:13:28 +00:00
|
|
|
|
|
|
|
#include <lvgl/lvgl.h>
|
|
|
|
|
2022-08-16 05:21:23 +00:00
|
|
|
namespace Colors {
|
2022-12-31 08:05:38 +00:00
|
|
|
static constexpr lv_color_t deepOrange = LV_COLOR_MAKE(0xff, 0x40, 0x0);
|
2022-08-16 05:21:23 +00:00
|
|
|
static constexpr lv_color_t orange = LV_COLOR_MAKE(0xff, 0xb0, 0x0);
|
|
|
|
static constexpr lv_color_t green = LV_COLOR_MAKE(0x0, 0xb0, 0x0);
|
2023-01-02 08:34:50 +00:00
|
|
|
static constexpr lv_color_t blue = LV_COLOR_MAKE(0x0, 0x50, 0xff);
|
2022-08-16 05:21:23 +00:00
|
|
|
static constexpr lv_color_t lightGray = LV_COLOR_MAKE(0xb0, 0xb0, 0xb0);
|
|
|
|
|
|
|
|
static constexpr lv_color_t bg = LV_COLOR_MAKE(0x5d, 0x69, 0x7e);
|
|
|
|
static constexpr lv_color_t bgAlt = LV_COLOR_MAKE(0x38, 0x38, 0x38);
|
|
|
|
static constexpr lv_color_t bgDark = LV_COLOR_MAKE(0x18, 0x18, 0x18);
|
|
|
|
static constexpr lv_color_t highlight = green;
|
|
|
|
};
|
2021-01-28 17:13:28 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2023-01-23 22:45:18 +00:00
|
|
|
lv_theme_t* lv_pinetime_theme_init();
|