Browse code

change text layer

Louis authored on01/10/2022 17:42:28
Showing1 changed files
... ...
@@ -63,7 +63,7 @@ static void prv_window_load(Window *window) {
63 63
 
64 64
   // Create the speed text layer and set the text
65 65
   s_speed_text_layer = text_layer_create(GRect(0, 72, bounds.size.w, bounds.size.h));
66
-  //text_layer_set_text(s_speed_text_layer, "Press a button");
66
+  text_layer_set_text(s_speed_text_layer, "Press a button");
67 67
   // Set the font and text alignment
68 68
   text_layer_set_font(s_speed_text_layer, fonts_get_system_font(FONT_KEY_ROBOTO_BOLD_SUBSET_49));
69 69
   text_layer_set_text_alignment(s_speed_text_layer, GTextAlignmentCenter);
... ...
@@ -73,7 +73,7 @@ static void prv_window_load(Window *window) {
73 73
   
74 74
   // Create the altitude text layer and set the text
75 75
   s_altitude_text_layer = text_layer_create(GRect(bounds.size.w/2, bounds.size.h/2,bounds.size.w/2, bounds.size.h/2));
76
-  text_layer_set_text(s_altitude_text_layer, "Press a button");
76
+  //text_layer_set_text(s_altitude_text_layer, "Press a button");
77 77
   // Set the font and text alignment
78 78
   text_layer_set_font(s_altitude_text_layer, fonts_get_system_font(FONT_KEY_ROBOTO_BOLD_SUBSET_49));
79 79
   text_layer_set_text_alignment(s_altitude_text_layer, GTextAlignmentCenter);
... ...
@@ -89,7 +89,7 @@ static void prv_window_unload(Window *window) {
89 89
 void comm_is_ready() {
90 90
 
91 91
   // set the text
92
-  text_layer_set_text(s_altitude_text_layer, "Welcome to Bike Companion ! JSready");
92
+  text_layer_set_text(s_speed_text_layer, "Welcome to Bike Companion ! JSready");
93 93
 
94 94
   // Declare the dictionary's iterator
95 95
   DictionaryIterator *out_iter;