From c6af9c9618a653183d4653baafe07adea3f2dca0 Mon Sep 17 00:00:00 2001 From: neonman63 <5744486+neonman63@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:00:30 +0000 Subject: [PATCH] Fix font in file preview --- src/file_panel.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/file_panel.cpp b/src/file_panel.cpp index a824334..3169c2f 100644 --- a/src/file_panel.cpp +++ b/src/file_panel.cpp @@ -12,9 +12,7 @@ namespace fs = std::experimental::filesystem; -#define THUMBSCALE = 0.78 - -LV_FONT_DECLARE(notosans_16); +#define THUMBSCALE = 0.75 FilePanel::FilePanel(lv_obj_t *parent) : file_cont(lv_obj_create(parent)) @@ -28,8 +26,6 @@ FilePanel::FilePanel(lv_obj_t *parent) lv_obj_set_width(fname_label, LV_PCT(90)); lv_label_set_long_mode(fname_label, LV_LABEL_LONG_SCROLL); lv_obj_set_style_text_align(fname_label, LV_TEXT_ALIGN_CENTER, 0); - lv_obj_set_style_text_font(fname_label, ¬osans_16, LV_STATE_DEFAULT); - static lv_coord_t grid_main_row_dsc[] = {LV_GRID_FR(3), LV_GRID_FR(2), LV_GRID_TEMPLATE_LAST}; static lv_coord_t grid_main_col_dsc[] = {LV_GRID_FR(1), LV_GRID_TEMPLATE_LAST};