Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranc authored and JF002 committed Nov 11, 2023
1 parent e6b96c2 commit d930fd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/displayapp/fonts/fonts.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"sources": [
{
"file": "JetBrainsMono-Regular.ttf",
"range": "0x25, 0x2b, 0x2d, 0x30-0x3a"
"range": "0x25, 0x2b, 0x2d, 0x30-0x3a, 0x4b-0x4d, 0x66, 0x69, 0x6b, 0x6d, 0x74"
}
],
"bpp": 1,
Expand Down
14 changes: 9 additions & 5 deletions src/displayapp/screens/Navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,23 @@ Navigation::Navigation(Pinetime::Controllers::NavigationService& nav) : navServi
lv_obj_align(imgFlag, nullptr, LV_ALIGN_CENTER, 0, -60);

txtNarrative = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_long_mode(txtNarrative, LV_LABEL_LONG_BREAK);
lv_label_set_long_mode(txtNarrative, LV_LABEL_LONG_DOT);
lv_obj_set_width(txtNarrative, LV_HOR_RES);
lv_label_set_text_static(txtNarrative, "Navigation");
lv_obj_set_height(txtNarrative, 80);
//lv_label_set_text_static(txtNarrative, "Navigation");
lv_label_set_text(txtNarrative, "Navigation blah blah very long text really long road name etc etc etc");
lv_label_set_align(txtNarrative, LV_LABEL_ALIGN_CENTER);
lv_obj_align(txtNarrative, nullptr, LV_ALIGN_CENTER, 0, 10);
lv_obj_align(txtNarrative, nullptr, LV_ALIGN_CENTER, 0, 30);

txtManDist = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_long_mode(txtManDist, LV_LABEL_LONG_BREAK);
lv_obj_set_style_local_text_color(txtManDist, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_GREEN);
lv_obj_set_style_local_text_font(txtManDist, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &jetbrains_mono_42);
lv_obj_set_width(txtManDist, LV_HOR_RES);
lv_label_set_text_static(txtManDist, "--M");
//lv_label_set_text_static(txtManDist, "--M");
lv_label_set_text_static(txtManDist, "123m");
lv_label_set_align(txtManDist, LV_LABEL_ALIGN_CENTER);
lv_obj_align(txtManDist, nullptr, LV_ALIGN_CENTER, 0, 60);
lv_obj_align(txtManDist, nullptr, LV_ALIGN_CENTER, 0, 90);

// Route Progress
barProgress = lv_bar_create(lv_scr_act(), nullptr);
Expand Down

0 comments on commit d930fd4

Please sign in to comment.