Skip to content

Commit

Permalink
Fix font in file preview
Browse files Browse the repository at this point in the history
  • Loading branch information
neonman63 committed Oct 11, 2024
1 parent 4f188b0 commit c6af9c9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/file_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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, &notosans_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};
Expand Down

0 comments on commit c6af9c9

Please sign in to comment.