From c0f6f54f8bddbe5900784e3ca40d113c989e2629 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Sat, 21 Nov 2015 21:12:12 +0100 Subject: fix text centering on PT --- src/battery.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battery.c b/src/battery.c index dc93b81..3072c9b 100644 --- a/src/battery.c +++ b/src/battery.c @@ -79,6 +79,8 @@ void window_load(Window *window) { #ifdef PBL_ROUND battery_percentage = text_layer_create((GRect) { .origin = { 0, 55 }, .size = { bounds.size.w, 45 } }); +#elif PBL_COLOR + battery_percentage = text_layer_create((GRect) { .origin = { 0, 45 }, .size = { bounds.size.w, 45 } }); #else battery_percentage = text_layer_create((GRect) { .origin = { 0, 32 }, .size = { bounds.size.w, 45 } }); #endif @@ -88,6 +90,8 @@ void window_load(Window *window) { #ifdef PBL_ROUND charge_status = text_layer_create((GRect) { .origin = { 0, 102 }, .size = { bounds.size.w, 20 } }); +#elif PBL_COLOR + charge_status = text_layer_create((GRect) { .origin = { 0, 92 }, .size = { bounds.size.w, 20 } }); #else charge_status = text_layer_create((GRect) { .origin = { 0, 82 }, .size = { bounds.size.w, 20 } }); #endif -- cgit v1.2.3