Fix counter alignment

This commit is contained in:
2026-06-12 20:31:01 -04:00
parent 04d184c952
commit 124d4550ec
+3 -3
View File
@@ -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();