Fix charge-screen battery percent clip to match 0904 design.

Draw 16px glyphs at y=269 so the full 50% matches the design bbox.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yuquanjun 2026-09-05 20:48:52 +08:00
parent 0e57fa452f
commit bc41d27730
2 changed files with 7 additions and 7 deletions

View File

@ -292,9 +292,9 @@ uint8_t app_log_try_command(const char *cmd)
Draw_Charging_Icon(120, 150, 2, 0x3D7F);
SEGGER_RTT_WriteString(APP_LOG_RTT_CHANNEL, "UI_CHARGE_EMPTY\n");
}
LCD_FillByColor(40, 255, 200, 292, UI0902_BG_COLOR);
LCD_ShowString_AutoAlign(0, 240, 264, (uint8_t *)"50%", LCD_ALIGN_CENTER,
WHITE, UI0902_BG_COLOR, 0, 24);
LCD_FillByColor(60, 260, 180, 290, UI0902_BG_COLOR);
LCD_ShowString_AutoAlign(0, 240, 269, (uint8_t *)"50%", LCD_ALIGN_CENTER,
WHITE, UI0902_BG_COLOR, 0, 16);
return 1U;
}
return 0U;

View File

@ -284,10 +284,10 @@ void IdleProcess(DisplayTaskMessage_Type msg)
{
uint8_t Info[10] = {0,};
sprintf ((char*)Info, "%d%%", msg.ID);
/* 设计稿约 y270字库仅有 16/24/28用 24 贴近标注 20 */
LCD_FillByColor(40, 255, 200, 292, UI0902_BG_COLOR);
LCD_ShowString_AutoAlign(0, 240, 264, Info, LCD_ALIGN_CENTER,
WHITE, UI0902_BG_COLOR, 0, 24);
/* 设计稿 0904-0950% 在 y≈269..284(约 16px 高),须完整可见 */
LCD_FillByColor(60, 260, 180, 290, UI0902_BG_COLOR);
LCD_ShowString_AutoAlign(0, 240, 269, Info, LCD_ALIGN_CENTER,
WHITE, UI0902_BG_COLOR, 0, 16);
}
else
{