From 12454113287a698b04e9dfe30bdf6b1f6346523e Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 28 Apr 2020 20:51:18 +0200 Subject: [PATCH] fix warning in themes --- src/lv_themes/lv_theme_empty.c | 2 +- src/lv_themes/lv_theme_empty.h | 2 +- src/lv_themes/lv_theme_material.c | 2 +- src/lv_themes/lv_theme_material.h | 2 +- src/lv_themes/lv_theme_mono.c | 2 +- src/lv_themes/lv_theme_mono.h | 2 +- src/lv_themes/lv_theme_template.c | 2 +- src/lv_themes/lv_theme_template.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lv_themes/lv_theme_empty.c b/src/lv_themes/lv_theme_empty.c index 93b34affb..221ba7d29 100644 --- a/src/lv_themes/lv_theme_empty.c +++ b/src/lv_themes/lv_theme_empty.c @@ -57,7 +57,7 @@ static lv_style_t opa_cover; * @return a pointer to reference this theme later */ lv_theme_t * lv_theme_empty_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags, - lv_font_t * font_small, lv_font_t * font_normal, lv_font_t * font_subtitle, lv_font_t * font_title) + const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle, const lv_font_t * font_title) { lv_style_init(&opa_cover); lv_style_set_bg_opa(&opa_cover, LV_STATE_DEFAULT, LV_OPA_COVER); diff --git a/src/lv_themes/lv_theme_empty.h b/src/lv_themes/lv_theme_empty.h index b89081db1..44aff2bd5 100644 --- a/src/lv_themes/lv_theme_empty.h +++ b/src/lv_themes/lv_theme_empty.h @@ -42,7 +42,7 @@ extern "C" { * @return a pointer to reference this theme later */ lv_theme_t * lv_theme_empty_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags, - lv_font_t * font_small, lv_font_t * font_normal, lv_font_t * font_subtitle, lv_font_t * font_title); + const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle, const lv_font_t * font_title); /********************** * MACROS **********************/ diff --git a/src/lv_themes/lv_theme_material.c b/src/lv_themes/lv_theme_material.c index e3b506af0..5d47cbf79 100644 --- a/src/lv_themes/lv_theme_material.c +++ b/src/lv_themes/lv_theme_material.c @@ -850,7 +850,7 @@ static void win_init(void) * @return a pointer to reference this theme later */ lv_theme_t * lv_theme_material_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags, - lv_font_t * font_small, lv_font_t * font_normal, lv_font_t * font_subtitle, lv_font_t * font_title) + const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle, const lv_font_t * font_title) { theme.color_primary = color_primary; diff --git a/src/lv_themes/lv_theme_material.h b/src/lv_themes/lv_theme_material.h index 5f4455e0a..9944120fb 100644 --- a/src/lv_themes/lv_theme_material.h +++ b/src/lv_themes/lv_theme_material.h @@ -46,7 +46,7 @@ typedef enum { * @return a pointer to reference this theme later */ lv_theme_t * lv_theme_material_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags, - lv_font_t * font_small, lv_font_t * font_normal, lv_font_t * font_subtitle, lv_font_t * font_title); + const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle, const lv_font_t * font_title); /********************** * MACROS **********************/ diff --git a/src/lv_themes/lv_theme_mono.c b/src/lv_themes/lv_theme_mono.c index fed09f973..42d10f9eb 100644 --- a/src/lv_themes/lv_theme_mono.c +++ b/src/lv_themes/lv_theme_mono.c @@ -485,7 +485,7 @@ static void win_init(void) * @return a pointer to reference this theme later */ lv_theme_t * lv_theme_mono_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags, - lv_font_t * font_small, lv_font_t * font_normal, lv_font_t * font_subtitle, lv_font_t * font_title) + const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle, const lv_font_t * font_title) { theme.color_primary = color_primary; theme.color_secondary = color_secondary; diff --git a/src/lv_themes/lv_theme_mono.h b/src/lv_themes/lv_theme_mono.h index 223180709..9efab1679 100644 --- a/src/lv_themes/lv_theme_mono.h +++ b/src/lv_themes/lv_theme_mono.h @@ -42,7 +42,7 @@ extern "C" { * @return a pointer to reference this theme later */ lv_theme_t * lv_theme_mono_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags, - lv_font_t * font_small, lv_font_t * font_normal, lv_font_t * font_subtitle, lv_font_t * font_title); + const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle, const lv_font_t * font_title); /********************** * MACROS **********************/ diff --git a/src/lv_themes/lv_theme_template.c b/src/lv_themes/lv_theme_template.c index ae85c64a8..c4bf01ef9 100644 --- a/src/lv_themes/lv_theme_template.c +++ b/src/lv_themes/lv_theme_template.c @@ -340,7 +340,7 @@ static void win_init(void) * @return a pointer to reference this theme later */ lv_theme_t * lv_theme_template_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags, - lv_font_t * font_small, lv_font_t * font_normal, lv_font_t * font_subtitle, lv_font_t * font_title) + const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle, const lv_font_t * font_title) { _color_primary = color_primary; diff --git a/src/lv_themes/lv_theme_template.h b/src/lv_themes/lv_theme_template.h index 542e0b17e..835463ad2 100644 --- a/src/lv_themes/lv_theme_template.h +++ b/src/lv_themes/lv_theme_template.h @@ -42,7 +42,7 @@ extern "C" { * @return a pointer to reference this theme later */ lv_theme_t * lv_theme_template_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags, - lv_font_t * font_small, lv_font_t * font_normal, lv_font_t * font_subtitle, lv_font_t * font_title); + const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle, const lv_font_t * font_title); /********************** * MACROS **********************/