Font menu: show only 5 items per page

To get more room below to see how the text looks
with the selected font.
This commit is contained in:
poire-z committed 2020-02-15 12:31:55 +01:00
1 parent d22924c550
commit 30f9673c7d
2 files changed
+7 -3

No files matched your search

@@ -309,6 +309,9 @@ function ReaderFont:makeDefault(face, touchmenu_instance)
end
function ReaderFont:addToMainMenu(menu_items)
-- Have TouchMenu show half of the usual nb of items, so we
-- have more room to see how the text looks with that font
self.face_table.max_per_page = 5
-- insert table to main reader menu
menu_items.change_font = {
text = self.font_menu_title,