From 124d4550ec1979779759d6bf2a2576864eb95685 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 12 Jun 2026 20:31:01 -0400 Subject: [PATCH] Fix counter alignment --- src/c/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c/main.c b/src/c/main.c index 0bc1a22..6c3f53e 100644 --- a/src/c/main.c +++ b/src/c/main.c @@ -20,7 +20,7 @@ static GBitmap *s_legacy_actionbar_patch_bottom; static GBitmap *s_legacy_actionbar_patch_top; static BitmapLayer *s_patch_bottom_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_top_grect = GRect(166, 20, 34, 5); #else @@ -92,9 +92,9 @@ void window_load(Window *window) { #endif 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_background_color(s_text_layer, GColorClear); update();