From 6056b6fe618e9d2ecd524c79e864a98be067f787 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Fri, 3 Apr 2026 11:52:42 +0200 Subject: [PATCH] Proper centering --- src/activities/boot_sleep/SleepActivity.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/activities/boot_sleep/SleepActivity.cpp b/src/activities/boot_sleep/SleepActivity.cpp index cfa02156..f78c0691 100644 --- a/src/activities/boot_sleep/SleepActivity.cpp +++ b/src/activities/boot_sleep/SleepActivity.cpp @@ -524,7 +524,7 @@ void SleepActivity::renderBitmapSleepScreen(const Bitmap& bitmap, const BookOver if (hasProgress) { std::string progressStr; if (!overlayInfo.chapterName.empty()) { - const std::string prefix = tr(STR_CHAPTER_PREFIX); + const std::string prefix = ""; const int prefixWidth = renderer.getTextWidth(UI_10_FONT_ID, prefix.c_str()); const int suffixWidth = renderer.getTextWidth(UI_10_FONT_ID, overlayInfo.progressSuffix.c_str()); const int maxChapterWidth = availableWidth - prefixWidth - suffixWidth; @@ -532,8 +532,7 @@ void SleepActivity::renderBitmapSleepScreen(const Bitmap& bitmap, const BookOver maxChapterWidth > 0 ? renderer.truncatedText(UI_10_FONT_ID, overlayInfo.chapterName.c_str(), maxChapterWidth) : ""; - // progressStr = prefix + truncatedChapter + overlayInfo.progressSuffix; - progressStr = truncatedChapter + overlayInfo.progressSuffix; + progressStr = prefix + truncatedChapter + overlayInfo.progressSuffix; } else { progressStr = renderer.truncatedText(UI_10_FONT_ID, overlayInfo.progressText.c_str(), availableWidth); }