[UX] Add ToC/Bookmarks settings

- Menu widget: allow specifying the number of items per
  page and the item font size, so we can use other values
  than the default File browser ones
- Menu: fix setDirty when a border is used
- ToC: add item per page and font size settings, make
  Alternative ToC more visible (was previously
  available on long-press on Table of contents)
- Bookmarks: add item per page, font size, size reduction
- Progress bars (Skim widget and footer): allow selecting
  ToC depths from which ticks are made.
This commit is contained in:
poire-z
2021-02-04 17:43:52 +01:00
parent 316107a1cb
commit 3b89e32069
13 changed files with 353 additions and 83 deletions

View File

@@ -859,7 +859,7 @@ function ReaderRolling:updatePos()
self:_gotoXPointer(self.xpointer)
self.ui:handleEvent(Event:new("UpdateToc"))
end
self:updateTopStatusBarMarkers()
self:onUpdateTopStatusBarMarkers()
UIManager:setDirty(self.view.dialog, "partial")
-- Allow for the new rendering to be shown before possibly showing
-- the "Styles have changed..." ConfirmBox so the user can decide
@@ -1042,7 +1042,7 @@ function ReaderRolling:onSetStatusLine(status_line)
self.ui:handleEvent(Event:new("UpdatePos"))
end
function ReaderRolling:updateTopStatusBarMarkers()
function ReaderRolling:onUpdateTopStatusBarMarkers()
if not self.cre_top_bar_enabled then
return
end