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
2020-02-14 08:22:25 +01:00
parent d22924c550
commit 30f9673c7d
2 changed files with 7 additions and 3 deletions

View File

@@ -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,