KeyValuePage: configurable items per page
Tweak building to start from items per page instead of a fixed item height. Guess the best font size that fit. Update separator specification from using a "----" to the now generic separator=true (this allows not wasting a slot for each separator in the page and not have only 12 items and 2 small lines in a 14 items page).
This commit is contained in:
1 parent
572900bfff
commit
8a0d798e9e
9 files changed
+121
-52
No files matched your search
@@ -807,7 +807,7 @@ function ReaderTypography:onPreRenderDocument(config)
|
||||
-- Add a menu item to language sub-menu, whether the lang is known or not, so the
|
||||
-- user can see it and switch from and back to it easily
|
||||
table.insert(self.language_submenu, 1, {
|
||||
text = T(_("Book language: %1"), self.book_lang_tag or _("n/a")),
|
||||
text = T(_("Book language: %1"), self.book_lang_tag or _("N/A")),
|
||||
callback = function()
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = T(_("Changed language for typography rules to book language: %1."), BD.wrap(self.book_lang_tag)),
|
||||
|
||||
Reference in new issue
Block a user