@@ -14,7 +14,7 @@ static char s_battery_buffer[5];
14
14
static char s_time_buffer [6 ];
15
15
static char s_date_buffer [13 ];
16
16
static char s_day_buffer [10 ];
17
- static char s_bluetooth_buffer [5 ];
17
+ static char s_bluetooth_buffer [7 ];
18
18
19
19
static void update_time () {
20
20
// Get current time
@@ -56,9 +56,9 @@ static void battery_handler(BatteryChargeState charge_state) {
56
56
57
57
static void update_bluetooth () {
58
58
if (bluetooth_connection_service_peek ()) {
59
- strncpy (s_bluetooth_buffer , "BT:C " , sizeof (s_bluetooth_buffer ));
59
+ strncpy (s_bluetooth_buffer , "BT on " , sizeof (s_bluetooth_buffer ));
60
60
} else {
61
- strncpy (s_bluetooth_buffer , "BT:D " , sizeof (s_bluetooth_buffer ));
61
+ strncpy (s_bluetooth_buffer , "BT off " , sizeof (s_bluetooth_buffer ));
62
62
}
63
63
64
64
text_layer_set_text (s_bluetooth_layer , s_bluetooth_buffer );
@@ -97,14 +97,14 @@ static void main_window_load(Window *window) {
97
97
layer_add_child (window_get_root_layer (window ), text_layer_get_layer (s_date_layer ));
98
98
99
99
// Create day layer
100
- s_day_layer = text_layer_create (GRect (0 , 148 , 122 , 20 ));
100
+ s_day_layer = text_layer_create (GRect (0 , 148 , 115 , 20 ));
101
101
text_layer_set_background_color (s_day_layer , GColorBlack );
102
102
text_layer_set_text_color (s_day_layer , GColorWhite );
103
103
text_layer_set_font (s_day_layer , fonts_get_system_font (FONT_KEY_GOTHIC_14 ));
104
104
layer_add_child (window_get_root_layer (window ), text_layer_get_layer (s_day_layer ));
105
105
106
106
// Create bluetooth layer
107
- s_bluetooth_layer = text_layer_create (GRect (122 , 148 , 22 , 20 ));
107
+ s_bluetooth_layer = text_layer_create (GRect (115 , 148 , 29 , 20 ));
108
108
text_layer_set_background_color (s_bluetooth_layer , GColorBlack );
109
109
text_layer_set_text_color (s_bluetooth_layer , GColorWhite );
110
110
text_layer_set_font (s_bluetooth_layer , fonts_get_system_font (FONT_KEY_GOTHIC_14 ));
0 commit comments