From 48f0589ef59c2733258daf94271e90bf353a6108 Mon Sep 17 00:00:00 2001 From: Pixel Perfect Date: Tue, 4 Aug 2026 11:09:13 -0700 Subject: [PATCH] fix(tpager): center discovered count badge --- src/ui-touch/UITask.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui-touch/UITask.cpp b/src/ui-touch/UITask.cpp index e514573..801ae6d 100644 --- a/src/ui-touch/UITask.cpp +++ b/src/ui-touch/UITask.cpp @@ -24054,7 +24054,14 @@ static void makeContactsTab(lv_obj_t* tab) { lv_obj_set_style_bg_color(s_ct_disc_badge, lv_color_hex(0xE0533D), LV_PART_MAIN); lv_obj_set_style_bg_opa(s_ct_disc_badge, LV_OPA_COVER, LV_PART_MAIN); lv_obj_set_style_text_color(s_ct_disc_badge, lv_color_white(), LV_PART_MAIN); + // This is fixed-size chrome inside a 16-px pill, not semantic body text. + // Pager Large/Jumbo gives g_font_12 a 27-px line box, which clips the + // digits below the pill instead of centring them. +#if defined(TLORA_PAGER) + lv_obj_set_style_text_font(s_ct_disc_badge, &lv_font_montserrat_12, LV_PART_MAIN); +#else lv_obj_set_style_text_font(s_ct_disc_badge, &g_font_12, LV_PART_MAIN); +#endif lv_obj_set_style_text_align(s_ct_disc_badge, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN); lv_obj_set_style_pad_hor(s_ct_disc_badge, 3, LV_PART_MAIN); lv_obj_align(s_ct_disc_badge, LV_ALIGN_RIGHT_MID, -2, 0);