this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

larger font sizes

alice 293b94e2 1fb58d4c

+8 -8
+8 -8
src/c/watchface.c
··· 39 39 int footer_h = 48; 40 40 int hero_h = bounds.size.h - footer_h; 41 41 const int city_h = 28; 42 - const int name_h = 22; // height for airport name (increased to fit descenders) 42 + const int name_h = 28; // height for airport name (increased to fit descenders) 43 43 const int usable_h = hero_h - city_h - name_h; 44 44 const int time_font_h = 42; 45 45 // Create city name line ··· 47 47 GRect(0, 0, bounds.size.w, city_h), window_layer); 48 48 text_layer_set_text_alignment(s_airport_noon_code_layer, GTextAlignmentCenter); 49 49 // Create airport name line below the IATA code 50 - s_airport_noon_name_layer = text_layer_create(GRect(0, city_h, bounds.size.w, name_h)); 51 - text_layer_set_font(s_airport_noon_name_layer, fonts_get_system_font(FONT_KEY_GOTHIC_18)); 50 + s_airport_noon_name_layer = text_layer_create(GRect(4, name_h, bounds.size.w - 4, name_h)); 51 + text_layer_set_font(s_airport_noon_name_layer, fonts_get_system_font(FONT_KEY_GOTHIC_24)); 52 52 text_layer_set_text_alignment(s_airport_noon_name_layer, GTextAlignmentCenter); 53 53 layer_add_child(window_layer, text_layer_get_layer(s_airport_noon_name_layer)); 54 54 // Create hero time line, vertically centered ··· 61 61 int h = bounds.size.h; 62 62 int footer_y = h - footer_h; 63 63 // Two line heights to fit fonts without clipping 64 - int tid_h = 26; // tall enough for 18px font + padding 64 + int tid_h = 28; // tall enough for 18px font + padding 65 65 int beat_h = footer_h - tid_h; 66 66 67 67 // Footer line 1: TID (bigger, center aligned) 68 - s_tid_layer = clock_tid_init(GRect(0, footer_y, w, tid_h), window_layer); 69 - text_layer_set_font(s_tid_layer, fonts_get_system_font(FONT_KEY_GOTHIC_18_BOLD)); 68 + s_tid_layer = clock_tid_init(GRect(0, footer_y - 1, w, tid_h), window_layer); 69 + text_layer_set_font(s_tid_layer, fonts_get_system_font(FONT_KEY_GOTHIC_24_BOLD)); 70 70 text_layer_set_text_alignment(s_tid_layer, GTextAlignmentCenter); 71 71 72 72 // Footer line 2: Beat (smaller, center aligned) 73 - s_beat_layer = clock_beat_init(GRect(0, footer_y + tid_h, w, beat_h), window_layer); 74 - text_layer_set_font(s_beat_layer, fonts_get_system_font(FONT_KEY_GOTHIC_14)); 73 + s_beat_layer = clock_beat_init(GRect(0, footer_y + tid_h - 3, w, beat_h), window_layer); 74 + text_layer_set_font(s_beat_layer, fonts_get_system_font(FONT_KEY_GOTHIC_18)); 75 75 text_layer_set_text_alignment(s_beat_layer, GTextAlignmentCenter); 76 76 } 77 77