mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add hasp theme
This commit is contained in:
parent
99cdf25810
commit
a06e5d40dc
@ -387,7 +387,7 @@ typedef void* lv_font_user_data_t;
|
||||
/*Always enable at least on theme*/
|
||||
#define LV_USE_THEME_MATERIAL 1 /*A fast and impressive theme*/
|
||||
|
||||
#define LV_THEME_DEFAULT_INIT lv_theme_material_init
|
||||
#define LV_THEME_DEFAULT_INIT lv_theme_hasp_init // We init the theme ourselves
|
||||
#define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_RED
|
||||
#define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_BLUE
|
||||
#define LV_THEME_DEFAULT_FLAGS 0 //LV_THEME_MATERIAL_FLAG_NONE
|
||||
@ -642,7 +642,7 @@ typedef uint8_t lv_obj_user_data_t;
|
||||
#endif
|
||||
|
||||
/*Window (dependencies: lv_cont, lv_btn, lv_label, lv_img, lv_page)*/
|
||||
#define LV_USE_WIN (LV_HIGH_RESOURCE_MCU)
|
||||
#define LV_USE_WIN 1
|
||||
|
||||
/*==================
|
||||
* Non-user section
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -13,13 +13,20 @@ extern "C" {
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "lv_conf.h"
|
||||
#include "./lv_conf.h"
|
||||
#include "lvgl.h" /*To see all the widgets*/
|
||||
|
||||
#if LV_USE_THEME_HASP
|
||||
//#if LV_USE_THEME_HASP
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
typedef enum {
|
||||
LV_THEME_HASP_FLAG_DARK = 0x01,
|
||||
LV_THEME_HASP_FLAG_LIGHT = 0x02,
|
||||
LV_THEME_HASP_FLAG_NO_TRANSITION = 0x10,
|
||||
LV_THEME_HASP_FLAG_NO_FOCUS = 0x20,
|
||||
} lv_theme_hasp_flag_t;
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
@ -53,4 +60,4 @@ lv_theme_t * lv_theme_hasp_init(lv_color_t color_primary, lv_color_t color_secon
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /*LV_THEME_HASP_H*/
|
||||
//#endif /*LV_THEME_HASP_H*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user