From 1a6ddc4edac09c329f2c11e99590bdae00242286 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Fri, 15 May 2026 21:07:58 +0200 Subject: [PATCH] Add info string to list --- src/activities/home/RecentBooksActivity.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/activities/home/RecentBooksActivity.cpp b/src/activities/home/RecentBooksActivity.cpp index 3934416e..5a3edc4c 100644 --- a/src/activities/home/RecentBooksActivity.cpp +++ b/src/activities/home/RecentBooksActivity.cpp @@ -344,6 +344,14 @@ void RecentBooksActivity::renderListView(RenderLock&&) { [this](int index) { return UITheme::getFileIcon(recentBooks[index].path); }); } + if (!gpio.deviceIsX3()) { + const int hintY = contentRect.y + contentRect.height - metrics.verticalSpacing - 14; + const std::string hint = std::string(tr(STR_DIR_UP)) + "+L: " + tr(STR_VIEW_GRID) + "/" + tr(STR_VIEW_LIST) + + " " + tr(STR_DIR_LEFT) + "+L: " + tr(STR_REMOVE) + " " + tr(STR_DIR_RIGHT) + + "+L: " + tr(STR_INFO); + renderer.drawText(SMALL_FONT_ID, contentRect.x + metrics.contentSidePadding, hintY, hint.c_str()); + } + const bool hasBooks = !recentBooks.empty(); const auto labels = mappedInput.mapLabels(tr(STR_HOME), hasBooks ? tr(STR_OPEN) : "", "", ""); GUI.drawButtonHints(renderer, labels.btn1, labels.btn2, labels.btn3, labels.btn4);