Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/libs/lvgl/lv_themes/lv_theme_hekate.h
3694 views
1
/*
2
* Copyright (c) 2018-2026 CTCaer
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms and conditions of the GNU General Public License,
6
* version 2, as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#ifndef LV_THEME_HEKATE_H
18
#define LV_THEME_HEKATE_H
19
20
#ifdef __cplusplus
21
extern "C" {
22
#endif
23
24
/*********************
25
* INCLUDES
26
*********************/
27
#ifdef LV_CONF_INCLUDE_SIMPLE
28
#include "lv_conf.h"
29
#else
30
#include "../../lv_conf.h"
31
#endif
32
33
#if USE_LV_THEME_HEKATE
34
35
/*********************
36
* DEFINES
37
*********************/
38
#define COLOR_BG_BASE_MIN 0x0B0B0B
39
#define COLOR_BG_BASE_MAX 0xC7C7C7
40
41
#define COLOR_HOS_BG_DARKER LV_COLOR_HEX(0x1B1B1B)
42
#define COLOR_HOS_BG_DARK LV_COLOR_HEX(0x222222)
43
#define COLOR_HOS_BG LV_COLOR_HEX(0x2D2D2D)
44
#define COLOR_HOS_BG_RGB 0x2D2D2D
45
#define COLOR_HOS_BG_LIGHT LV_COLOR_HEX(0x3D3D3D)
46
#define COLOR_HOS_BG_LIGHTER LV_COLOR_HEX(0x4D4D4D)
47
48
#define COLOR_HOS_TURQUOISE_EX(hue) (hue ? lv_color_hsv_to_rgb(hue, 100, 100) : lv_color_hsv_to_rgb(53, 8, 90)) // 0x00FFC9
49
50
/**********************
51
* TYPEDEFS
52
**********************/
53
54
/**********************
55
* GLOBAL PROTOTYPES
56
**********************/
57
58
extern uint32_t theme_bg_color;
59
60
/**
61
* Initialize the material theme
62
* @param hue [0..360] hue value from HSV color space to define the theme's base color
63
* @param font pointer to a font (NULL to use the default)
64
* @return pointer to the initialized theme
65
*/
66
lv_theme_t * lv_theme_hekate_init(uint32_t bg_color, uint16_t hue, lv_font_t *font);
67
68
/**
69
* Get a pointer to the theme
70
* @return pointer to the theme
71
*/
72
lv_theme_t * lv_theme_get_hekate(void);
73
74
/**********************
75
* MACROS
76
**********************/
77
78
#endif
79
80
#ifdef __cplusplus
81
} /* extern "C" */
82
#endif
83
84
#endif /*LV_THEME_MATERIAL_H*/
85
86