Fix settings not being applied (Still waits until next draw)
This commit is contained in:
parent
296bda9061
commit
96e5a549e8
1 changed files with 8 additions and 0 deletions
|
|
@ -63,6 +63,14 @@ static void inbox_recieved_callback(DictionaryIterator *iter, void *context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void update_time() {
|
static void update_time() {
|
||||||
|
// Apply colour settings in the even they've been changed
|
||||||
|
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);
|
||||||
|
text_layer_set_background_color(s_eat_layer, settings.BackgroundColor);
|
||||||
|
text_layer_set_text_color(s_eat_layer, settings.ForegroundColor);
|
||||||
|
|
||||||
// Get a tm structure
|
// Get a tm structure
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
struct tm *tick_time = localtime(&now);
|
struct tm *tick_time = localtime(&now);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue