Switch to Leco fonts for time and date
Time: FONT_KEY_LECO_42_NUMBERS (largest available Leco) Date: FONT_KEY_LECO_38_BOLD_NUMBERS, right-aligned Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -102,22 +102,22 @@ static void main_window_load(Window *window) {
|
||||
layer_set_update_proc(s_bar_layer, bar_draw);
|
||||
layer_add_child(root, s_bar_layer);
|
||||
|
||||
// Time — Roboto Bold 49, centred
|
||||
// Time — Leco 42, centred
|
||||
s_time_layer = text_layer_create(
|
||||
GRect(0, PBL_IF_ROUND_ELSE(52, 44), bounds.size.w, 56));
|
||||
GRect(0, PBL_IF_ROUND_ELSE(52, 44), bounds.size.w, 52));
|
||||
text_layer_set_background_color(s_time_layer, GColorClear);
|
||||
text_layer_set_text_color(s_time_layer, GColorWhite);
|
||||
text_layer_set_font(s_time_layer, fonts_get_system_font(FONT_KEY_ROBOTO_BOLD_SUBSET_49));
|
||||
text_layer_set_font(s_time_layer, fonts_get_system_font(FONT_KEY_LECO_42_NUMBERS));
|
||||
text_layer_set_text_alignment(s_time_layer, GTextAlignmentCenter);
|
||||
text_layer_set_text(s_time_layer, "00:00");
|
||||
layer_add_child(root, text_layer_get_layer(s_time_layer));
|
||||
|
||||
// Date — Bitham 30, right-aligned
|
||||
// Date — Leco 38, right-aligned
|
||||
s_date_layer = text_layer_create(
|
||||
GRect(0, PBL_IF_ROUND_ELSE(114, 104), bounds.size.w, 36));
|
||||
GRect(0, PBL_IF_ROUND_ELSE(110, 100), bounds.size.w, 44));
|
||||
text_layer_set_background_color(s_date_layer, GColorClear);
|
||||
text_layer_set_text_color(s_date_layer, GColorWhite);
|
||||
text_layer_set_font(s_date_layer, fonts_get_system_font(FONT_KEY_BITHAM_30_BLACK));
|
||||
text_layer_set_font(s_date_layer, fonts_get_system_font(FONT_KEY_LECO_38_BOLD_NUMBERS));
|
||||
text_layer_set_text_alignment(s_date_layer, GTextAlignmentRight);
|
||||
text_layer_set_text(s_date_layer, "01/01");
|
||||
layer_add_child(root, text_layer_get_layer(s_date_layer));
|
||||
|
||||
Reference in New Issue
Block a user