Path: blob/master/bdk/libs/lvgl/lv_themes/lv_theme_hekate.h
3694 views
/*1* Copyright (c) 2018-2026 CTCaer2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License13* along with this program. If not, see <http://www.gnu.org/licenses/>.14*/1516#ifndef LV_THEME_HEKATE_H17#define LV_THEME_HEKATE_H1819#ifdef __cplusplus20extern "C" {21#endif2223/*********************24* INCLUDES25*********************/26#ifdef LV_CONF_INCLUDE_SIMPLE27#include "lv_conf.h"28#else29#include "../../lv_conf.h"30#endif3132#if USE_LV_THEME_HEKATE3334/*********************35* DEFINES36*********************/37#define COLOR_BG_BASE_MIN 0x0B0B0B38#define COLOR_BG_BASE_MAX 0xC7C7C73940#define COLOR_HOS_BG_DARKER LV_COLOR_HEX(0x1B1B1B)41#define COLOR_HOS_BG_DARK LV_COLOR_HEX(0x222222)42#define COLOR_HOS_BG LV_COLOR_HEX(0x2D2D2D)43#define COLOR_HOS_BG_RGB 0x2D2D2D44#define COLOR_HOS_BG_LIGHT LV_COLOR_HEX(0x3D3D3D)45#define COLOR_HOS_BG_LIGHTER LV_COLOR_HEX(0x4D4D4D)4647#define COLOR_HOS_TURQUOISE_EX(hue) (hue ? lv_color_hsv_to_rgb(hue, 100, 100) : lv_color_hsv_to_rgb(53, 8, 90)) // 0x00FFC94849/**********************50* TYPEDEFS51**********************/5253/**********************54* GLOBAL PROTOTYPES55**********************/5657extern uint32_t theme_bg_color;5859/**60* Initialize the material theme61* @param hue [0..360] hue value from HSV color space to define the theme's base color62* @param font pointer to a font (NULL to use the default)63* @return pointer to the initialized theme64*/65lv_theme_t * lv_theme_hekate_init(uint32_t bg_color, uint16_t hue, lv_font_t *font);6667/**68* Get a pointer to the theme69* @return pointer to the theme70*/71lv_theme_t * lv_theme_get_hekate(void);7273/**********************74* MACROS75**********************/7677#endif7879#ifdef __cplusplus80} /* extern "C" */81#endif8283#endif /*LV_THEME_MATERIAL_H*/848586