Skip to content

Commit

Permalink
Add comment explaining two labels
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcharger committed Jan 2, 2025
1 parent 09e3a80 commit cb5796e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/displayapp/screens/WatchFaceNumerals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ WatchFaceNumerals::WatchFaceNumerals(Controllers::DateTime& dateTimeController,
lv_obj_set_style_local_text_font(labelTimeAMPM1, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, font_small);
lv_obj_set_style_local_text_color(labelTimeAMPM1, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x999999));
lv_obj_align(labelTimeAMPM1, lv_scr_act(), LV_ALIGN_IN_BOTTOM_LEFT, 2, -34);

// We use two labels for more flexibility with alignment
labelTimeAMPM2 = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_text_static(labelTimeAMPM2, "M");
lv_obj_set_style_local_text_font(labelTimeAMPM2, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, font_small);
Expand Down

0 comments on commit cb5796e

Please sign in to comment.