mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
Make fonts ajustable
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user