Make Reader menu theme aware

This commit is contained in:
jpirnay committed 2026-04-09 14:51:39 +02:00
1 parent 8bb32d464d
commit 64b6818eeb
2 files changed
+33 -54

No files matched your search

+1 -1
View File
@@ -273,7 +273,7 @@ void BaseTheme::drawList(const GfxRenderer& renderer, Rect rect, int itemCount,
// Draw selection
int contentWidth = rect.width - 5;
if (selectedIndex >= 0) {
renderer.fillRect(0, rect.y + selectedIndex % pageItems * rowHeight - 2, rect.width, rowHeight);
renderer.fillRect(rect.x, rect.y + selectedIndex % pageItems * rowHeight - 2, rect.width, rowHeight);
}
// Draw all items
const auto pageStartIndex = selectedIndex / pageItems * pageItems;