Fix counter alignment
This commit is contained in:
+3
-3
@@ -20,7 +20,7 @@ static GBitmap *s_legacy_actionbar_patch_bottom;
|
|||||||
static GBitmap *s_legacy_actionbar_patch_top;
|
static GBitmap *s_legacy_actionbar_patch_top;
|
||||||
static BitmapLayer *s_patch_bottom_layer;
|
static BitmapLayer *s_patch_bottom_layer;
|
||||||
static BitmapLayer *s_patch_top_layer;
|
static BitmapLayer *s_patch_top_layer;
|
||||||
#if PBL_DISPLAY_WIDTH == 200
|
#if PBL_DISPLAY_WIDTH >= 200
|
||||||
static const GRect s_patch_bottom_grect = GRect(166, 223, 34, 5);
|
static const GRect s_patch_bottom_grect = GRect(166, 223, 34, 5);
|
||||||
static const GRect s_patch_top_grect = GRect(166, 20, 34, 5);
|
static const GRect s_patch_top_grect = GRect(166, 20, 34, 5);
|
||||||
#else
|
#else
|
||||||
@@ -92,9 +92,9 @@ void window_load(Window *window) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
GRect bounds = layer_get_frame(window_layer);
|
GRect bounds = layer_get_frame(window_layer);
|
||||||
const int16_t width = layer_get_frame(window_layer).size.w - ACTION_BAR_WIDTH - 3;
|
const int16_t width = layer_get_frame(window_layer).size.w - ACTION_BAR_WIDTH;
|
||||||
|
|
||||||
s_text_layer = text_layer_create(GRect(0, 44, width, bounds.size.h));
|
s_text_layer = text_layer_create(GRect(0, PBL_DISPLAY_HEIGHT / 2 - 27, width, bounds.size.h));
|
||||||
text_layer_set_font(s_text_layer, fonts_get_system_font(FONT_KEY_BITHAM_42_BOLD));
|
text_layer_set_font(s_text_layer, fonts_get_system_font(FONT_KEY_BITHAM_42_BOLD));
|
||||||
text_layer_set_background_color(s_text_layer, GColorClear);
|
text_layer_set_background_color(s_text_layer, GColorClear);
|
||||||
update();
|
update();
|
||||||
|
|||||||
Reference in New Issue
Block a user