ui: increase default font from 14px to 16px for readability

16px looks easier to read but IPv6 addresses don't fit in the wifi
settings panel anymore. need to find a better way how to display them or
change font.
add-custom-font
alex 2 years ago
parent bfc71fec92
commit 0266125c65

@ -45,7 +45,7 @@ pub fn build(b: *std.build.Builder) void {
ngui.addCSourceFiles(&.{
"src/ui/c/ui.c",
"src/ui/c/lv_font_courierprimecode_14.c",
//"src/ui/c/lv_font_courierprimecode_16.c",
"src/ui/c/lv_font_courierprimecode_16.c",
"src/ui/c/lv_font_courierprimecode_24.c",
}, ngui_cflags);

@ -346,11 +346,11 @@
/*Optionally declare custom fonts here.
*You can use these fonts as default font too and they will be available globally.
*E.g. #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) LV_FONT_DECLARE(my_font_2)*/
#define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(lv_font_courierprimecode_14) LV_FONT_DECLARE(lv_font_courierprimecode_24)
#define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(lv_font_courierprimecode_14) LV_FONT_DECLARE(lv_font_courierprimecode_16) LV_FONT_DECLARE(lv_font_courierprimecode_24)
/*Always set a default font*/
//#define LV_FONT_DEFAULT &lv_font_montserrat_14
#define LV_FONT_DEFAULT &lv_font_courierprimecode_14
#define LV_FONT_DEFAULT &lv_font_courierprimecode_16
/* additional fontawesome symbols to complement LV_SYMBOL_xxx */
#define NM_SYMBOL_BITCOIN "\xEF\x8D\xB9" /* 0xF379 */