diff --git a/src/c/main.c b/src/c/main.c index 085c3a6..c21e27c 100644 --- a/src/c/main.c +++ b/src/c/main.c @@ -58,11 +58,18 @@ static void inbox_recieved_callback(DictionaryIterator *iter, void *context) { settings.EatingWindowEnd = fast_end_t->value->cstring; } + // Apply colour settings + text_layer_set_background_color(s_time_layer, settings.BackgroundColor); + text_layer_set_text_color(s_time_layer, settings.ForegroundColor); + text_layer_set_background_color(s_date_layer, settings.BackgroundColor); + text_layer_set_text_color(s_date_layer, settings.ForegroundColor); + // Save the new settings to persistent storage save_settings(); } static void update_time() { + // Get a tm structure time_t now = time(NULL); struct tm *tick_time = localtime(&now);