Flow status text (useful for round support)
This commit is contained in:
1 parent
1413070333
commit
d070bfae6d
1 file changed
+3
@@ -82,6 +82,8 @@ static const uint8_t s_edge_bar_height = ((PBL_DISPLAY_HEIGHT / 7) * 2);
|
|||||||
static const GRect s_top_bar_grect = GRect(0, 0, PBL_DISPLAY_WIDTH, s_edge_bar_height);
|
static const GRect s_top_bar_grect = GRect(0, 0, PBL_DISPLAY_WIDTH, s_edge_bar_height);
|
||||||
static const GRect s_bottom_bar_grect = GRect(0, PBL_DISPLAY_HEIGHT - s_edge_bar_height, PBL_DISPLAY_WIDTH, s_edge_bar_height);
|
static const GRect s_bottom_bar_grect = GRect(0, PBL_DISPLAY_HEIGHT - s_edge_bar_height, PBL_DISPLAY_WIDTH, s_edge_bar_height);
|
||||||
static const GColor s_primary_color = GColorJaegerGreen;
|
static const GColor s_primary_color = GColorJaegerGreen;
|
||||||
|
//// status
|
||||||
|
#define STATUS_TEXT_INSET 3
|
||||||
//// alarm
|
//// alarm
|
||||||
#define MAX_SECS_WITHOUT_INPUT 10
|
#define MAX_SECS_WITHOUT_INPUT 10
|
||||||
#define SHAKE_COOLDOWN_SECS 2
|
#define SHAKE_COOLDOWN_SECS 2
|
||||||
@@ -156,6 +158,7 @@ static void status_window_load(StatusWindowPurpose purpose) {
|
|||||||
text_layer_set_text_alignment(s_status_txt_layer, GTextAlignmentCenter);
|
text_layer_set_text_alignment(s_status_txt_layer, GTextAlignmentCenter);
|
||||||
|
|
||||||
layer_add_child(window_layer, text_layer_get_layer(s_status_txt_layer));
|
layer_add_child(window_layer, text_layer_get_layer(s_status_txt_layer));
|
||||||
|
text_layer_enable_screen_text_flow_and_paging(s_status_txt_layer, STATUS_TEXT_INSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void status_window_unload() {
|
static void status_window_unload() {
|
||||||
|
|||||||
Reference in new issue
Block a user