Path: blob/master/bdk/libs/lvgl/lv_themes/lv_theme_hekate.h
1476 views
/*1* Copyright (c) 2018-2022 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_HOS_BG_BASE_DEFAULT 0x1B1B1B38#define COLOR_HOS_BG_BASE_BLACK 0x0000003940#define COLOR_HOS_BG_DARKER 0x1B1B1B41#define COLOR_HOS_BG_DARK 0x22222242#define COLOR_HOS_BG 0x2D2D2D43#define COLOR_HOS_BG_LIGHT 0x3D3D3D44#define COLOR_HOS_LIGHT_BORDER 0x4D4D4D4546/**********************47* TYPEDEFS48**********************/4950/**********************51* GLOBAL PROTOTYPES52**********************/5354extern uint32_t theme_bg_color;5556/**57* Initialize the material theme58* @param hue [0..360] hue value from HSV color space to define the theme's base color59* @param font pointer to a font (NULL to use the default)60* @return pointer to the initialized theme61*/62lv_theme_t * lv_theme_hekate_init(uint32_t bg_color, uint16_t hue, lv_font_t *font);6364/**65* Get a pointer to the theme66* @return pointer to the theme67*/68lv_theme_t * lv_theme_get_hekate(void);6970/**********************71* MACROS72**********************/7374#endif7576#ifdef __cplusplus77} /* extern "C" */78#endif7980#endif /*LV_THEME_MATERIAL_H*/818283