From f01c8e395a4a03c3a81bc630c54fc8850dca6c5f Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 19 Dec 2024 09:45:44 +0100 Subject: [PATCH] minor fixes --- examples/example_gen.c | 9 +++++++++ examples/example_gen.h | 9 +++++++-- examples/ui.c | 3 +-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/examples/example_gen.c b/examples/example_gen.c index 349297d..4a4a1a6 100644 --- a/examples/example_gen.c +++ b/examples/example_gen.c @@ -23,6 +23,15 @@ * STATIC VARIABLES **********************/ +/********************** + * GLOBAL VARIABLES + **********************/ + +/*Fonts*/ +lv_font_t inter_sm; +lv_font_t inter_md; +lv_font_t inter_xl; + /********************** * MACROS **********************/ diff --git a/examples/example_gen.h b/examples/example_gen.h index a64c23a..0d3268c 100644 --- a/examples/example_gen.h +++ b/examples/example_gen.h @@ -15,8 +15,8 @@ extern "C" { *********************/ /*Include all the widget and components of this library*/ -#include "dark_slider/dark_slider.h" -#include "slider_box/slider_box.h" +#include "widgets/dark_slider/dark_slider.h" +#include "widgets/slider_box/slider_box.h" #include "components/headings/h1_gen.h" #include "components/headings/h2_gen.h" #include "components/headings/h3_gen.h" @@ -38,6 +38,11 @@ extern "C" { * GLOBAL VARIABLES **********************/ +/*Fonts*/ +extern lv_font_t inter_sm; +extern lv_font_t inter_md; +extern lv_font_t inter_xl; + /********************** * GLOBAL PROTOTYPES **********************/ diff --git a/examples/ui.c b/examples/ui.c index 677fe13..82ef626 100644 --- a/examples/ui.c +++ b/examples/ui.c @@ -33,8 +33,7 @@ **********************/ void ui_init(void) -{ - +{ example_init(); }