diff --git a/appinfo.json b/appinfo.json index a50d11f..3b54a44 100644 --- a/appinfo.json +++ b/appinfo.json @@ -1,7 +1,7 @@ { "uuid": "55f7744b-f586-45b8-854c-554f34489f20", "shortName": "Timely", - "longName": "Timely 2.5", + "longName": "Timely 2.5.1", "companyName": "Martin Norland (@cynorg)", "versionCode": 2, "versionLabel": "2.5", @@ -47,6 +47,7 @@ "idle_stop": 34, "weather_fmt": 35, "weather_update": 36, + "show_splash": 37, "message_type": 99, "send_batt_percent": 100, diff --git a/src/Timely.c b/src/Timely.c index 94a9095..2e0d278 100644 --- a/src/Timely.c +++ b/src/Timely.c @@ -217,6 +217,7 @@ weather_data weather = { persist settings = { .version = 12, .inverted = 0, // no, dark + .show_splash = 0, // show splash screen on start .day_invert = 1, // yes .grid = 1, // yes .vibe_hour = 0, // no @@ -1447,14 +1448,17 @@ static void window_load(Window *window) { calendar_layer = layer_create(slot_bot_bounds); layer_set_update_proc(calendar_layer, calendar_layer_update_callback); layer_add_child(slot_bot, calendar_layer); - layer_set_hidden(calendar_layer, true); - splash_layer = layer_create(slot_bot_bounds); - layer_set_update_proc(splash_layer, splash_layer_update_callback); - layer_add_child(slot_bot, splash_layer); - toggle_slot_bottom((void*)splash_layer); // show @ start... - bottom_toggle = app_timer_register(2000, &toggle_slot_bottom, (void*)calendar_layer); // queue calendar to reappear in 2 seconds + if (settings.show_splash) { + layer_set_hidden(calendar_layer, true); + + layer_set_update_proc(splash_layer, splash_layer_update_callback); + layer_add_child(slot_bot, splash_layer); + + toggle_slot_bottom((void*)splash_layer); // show @ start... + bottom_toggle = app_timer_register(2000, &toggle_slot_bottom, (void*)calendar_layer); // queue calendar to reappear in 2 seconds + } date_layer = text_layer_create( GRect(REL_CLOCK_DATE_LEFT, REL_CLOCK_DATE_TOP, REL_CLOCK_DATE_WIDTH, REL_CLOCK_DATE_HEIGHT) ); // see position_date_layer() set_layer_attr_sfont(date_layer, FONT_KEY_GOTHIC_24, GTextAlignmentCenter); diff --git a/src/Timely.h b/src/Timely.h index 3f42169..2eff71b 100644 --- a/src/Timely.h +++ b/src/Timely.h @@ -7,6 +7,7 @@ typedef struct persist { // 18 bytes uint8_t version; // version key uint8_t inverted; // Invert display uint8_t day_invert; // Invert colors on today's date + uint8_t show_splash; // Show the splash screen uint8_t grid; // Show the grid uint8_t vibe_hour; // vibrate at the top of the hour? uint8_t dayOfWeekOffset; // first day of our week diff --git a/src/js/configuration.html b/src/js/configuration.html index 19dfc18..c2182be 100644 --- a/src/js/configuration.html +++ b/src/js/configuration.html @@ -88,6 +88,14 @@