"Show chapter length"

reviewable/pr11546/r4
poire-z 3 months ago
parent 049fdf0839
commit e78d4e9998

@ -1190,7 +1190,7 @@ Enabling this option will restrict display to the chapter titles of progress bar
end, end,
} }
menu_items.toc_items_show_chapter_length = { menu_items.toc_items_show_chapter_length = {
text = _("Show chapter page counts"), text = _("Show chapter length"),
keep_menu_open = true, keep_menu_open = true,
checked_func = function() checked_func = function()
return not G_reader_settings:nilOrFalse("toc_items_show_chapter_length") return not G_reader_settings:nilOrFalse("toc_items_show_chapter_length")

@ -185,8 +185,8 @@ function MenuItem:init()
-- Font for "mandatory" on the right -- Font for "mandatory" on the right
self.info_face = Font:getFace(self.infont, self.infont_size) self.info_face = Font:getFace(self.infont, self.infont_size)
-- Font for post_text if any: for now, this is only used with TOC, showing -- Font for post_text if any: for now, this is only used with TOC, showing
-- the chapter pages count: if feels best to use the face of the main text, -- the chapter length: if feels best to use the face of the main text, but
-- but with the size of the mandatory font (showing some number too). -- with the size of the mandatory font (which shows some number too).
if self.post_text then if self.post_text then
self.post_text_face = Font:getFace(self.font, self.infont_size) self.post_text_face = Font:getFace(self.font, self.infont_size)
end end

Loading…
Cancel
Save