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
1476 views
1
/*
2
* Copyright (c) 2018-2022 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_HOS_BG_BASE_DEFAULT 0x1B1B1B
39
#define COLOR_HOS_BG_BASE_BLACK 0x000000
40
41
#define COLOR_HOS_BG_DARKER 0x1B1B1B
42
#define COLOR_HOS_BG_DARK 0x222222
43
#define COLOR_HOS_BG 0x2D2D2D
44
#define COLOR_HOS_BG_LIGHT 0x3D3D3D
45
#define COLOR_HOS_LIGHT_BORDER 0x4D4D4D
46
47
/**********************
48
* TYPEDEFS
49
**********************/
50
51
/**********************
52
* GLOBAL PROTOTYPES
53
**********************/
54
55
extern uint32_t theme_bg_color;
56
57
/**
58
* Initialize the material theme
59
* @param hue [0..360] hue value from HSV color space to define the theme's base color
60
* @param font pointer to a font (NULL to use the default)
61
* @return pointer to the initialized theme
62
*/
63
lv_theme_t * lv_theme_hekate_init(uint32_t bg_color, uint16_t hue, lv_font_t *font);
64
65
/**
66
* Get a pointer to the theme
67
* @return pointer to the theme
68
*/
69
lv_theme_t * lv_theme_get_hekate(void);
70
71
/**********************
72
* MACROS
73
**********************/
74
75
#endif
76
77
#ifdef __cplusplus
78
} /* extern "C" */
79
#endif
80
81
#endif /*LV_THEME_MATERIAL_H*/
82
83