Make fonts ajustable

This commit is contained in:
suchmememanyskill
2024-01-28 00:24:33 +01:00
parent ec75a3e289
commit 1c50efa500
3 changed files with 3 additions and 3 deletions

View File

@@ -335,7 +335,7 @@
#define LV_FONT_MONTSERRAT_22 0
#define LV_FONT_MONTSERRAT_24 0
#define LV_FONT_MONTSERRAT_26 0
#define LV_FONT_MONTSERRAT_28 1
#define LV_FONT_MONTSERRAT_28 0
#define LV_FONT_MONTSERRAT_30 0
#define LV_FONT_MONTSERRAT_32 0
#define LV_FONT_MONTSERRAT_34 0

View File

@@ -211,7 +211,7 @@ void set_color_scheme(){
main_color = lv_palette_main(color_defs[global_config.color_scheme].primary_color);
}
lv_theme_t *theme = lv_theme_default_init(dispp, main_color, lv_palette_main(color_def.secondary_color), !global_config.lightMode, LV_FONT_DEFAULT);
lv_theme_t *theme = lv_theme_default_init(dispp, main_color, lv_palette_main(color_def.secondary_color), !global_config.lightMode, CYD_SCREEN_FONT);
lv_disp_set_theme(dispp, theme);
}

View File

@@ -186,5 +186,5 @@ void nav_style_setup(){
lv_style_set_radius(&nav_button_style, 0);
lv_style_init(&nav_button_text_style);
lv_style_set_text_font(&nav_button_text_style, &lv_font_montserrat_10);
lv_style_set_text_font(&nav_button_text_style, CYD_SCREEN_FONT_SMALL);
}