diff --git a/lv_conf_template.h b/lv_conf_template.h index bc4a35806..0297a0450 100644 --- a/lv_conf_template.h +++ b/lv_conf_template.h @@ -394,6 +394,7 @@ typedef void * lv_font_user_data_t; #define LV_USE_THEME_MATERIAL 1 /*A fast and impressive theme*/ #define LV_USE_THEME_MONO 0 /*Mono-color theme for monochrome displays*/ +#define LV_THEME_DEFAULT_INCLUDE /*Include a header for the init. function*/ #define LV_THEME_DEFAULT_INIT lv_theme_material_init #define LV_THEME_DEFAULT_COLOR_PRIMARY LV_COLOR_RED #define LV_THEME_DEFAULT_COLOR_SECONDARY LV_COLOR_BLUE diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index 67ea1d52d..da1b0cbbe 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -589,6 +589,9 @@ #define LV_USE_THEME_MONO 0 /*Mono-color theme for monochrome displays*/ #endif +#ifndef LV_THEME_DEFAULT_INCLUDE +#define LV_THEME_DEFAULT_INCLUDE /*Include a header for the init. function*/ +#endif #ifndef LV_THEME_DEFAULT_INIT #define LV_THEME_DEFAULT_INIT lv_theme_material_init #endif diff --git a/src/lv_core/lv_obj.c b/src/lv_core/lv_obj.c index aeb51c7f4..fca04ced2 100644 --- a/src/lv_core/lv_obj.c +++ b/src/lv_core/lv_obj.c @@ -36,6 +36,8 @@ #include LV_USER_DATA_FREE_INCLUDE #endif /* LV_USE_USER_DATA_FREE */ +#include LV_THEME_DEFAULT_INCLUDE + /********************* * DEFINES *********************/