Initial triangle generation
This commit is contained in:
+7
-1
@@ -1,4 +1,4 @@
|
||||
#include "src/resource_ids.auto.h"
|
||||
#include "triangles.h"
|
||||
#include <pebble.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -36,6 +36,7 @@ static TextLayer *s_drop_txt_under_layer;
|
||||
static Layer *s_division_layer;
|
||||
static Layer *s_alarm_highlight_layer;
|
||||
static MenuLayer *s_drop_menu_layer;
|
||||
static TriangleLayer *s_triangle_layer;
|
||||
|
||||
// fonts
|
||||
//// setter
|
||||
@@ -546,11 +547,16 @@ static void alarm_window_load() {
|
||||
layer_set_update_proc(s_alarm_highlight_layer, alarm_highlight_layer_update_proc);
|
||||
layer_add_child(window_layer, s_alarm_highlight_layer);
|
||||
|
||||
// triangle
|
||||
s_triangle_layer = triangle_layer_create(GRect(0, s_top_bar_grect.size.h + 1, PBL_DISPLAY_WIDTH, PBL_DISPLAY_HEIGHT - (s_top_bar_grect.size.h * 2)));
|
||||
layer_add_child(window_layer, s_triangle_layer->layer);
|
||||
|
||||
schedule_fallback_alarm();
|
||||
tick_timer_service_subscribe(SECOND_UNIT, alarm_seconds_handler);
|
||||
}
|
||||
|
||||
static void alarm_window_unload() {
|
||||
triangle_layer_destroy(s_triangle_layer);
|
||||
layer_destroy(s_alarm_highlight_layer);
|
||||
layer_destroy(s_division_layer);
|
||||
text_layer_destroy(s_parenthesis_txt_layer);
|
||||
|
||||
Reference in New Issue
Block a user