mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add Book map and Page browser features
- Book map: shows a map of content, including TOC, boomarks, read pages, non-linear flows... - Page browser: shows thumbnails of pages. - ReaderThumbnail: new Reader module that provides a service for generating thumbnails of book pages. It makes available these 2 new fullscreen widgets. - ReaderBookmark, ReaderLink, Statistics: add methods to return new views of bookmarks, previous locations and read pages, that are needed by BookMapWidget. - ReaderToc: compute TOC max_depth. - ReaderBookmark, ReaderHighlight: send events on bookmark add/update/remove so thumbnails of the pages impacted can be trashed.
This commit is contained in:
@@ -1710,8 +1710,13 @@ function ReaderHighlight:editHighlightStyle(page, i)
|
||||
default_provider = self.view.highlight.saved_drawer or
|
||||
G_reader_settings:readSetting("highlight_drawing_style", "lighten"),
|
||||
callback = function(radio)
|
||||
self.view.highlight.saved[page][i].drawer = radio.provider
|
||||
item.drawer = radio.provider
|
||||
UIManager:setDirty(self.dialog, "ui")
|
||||
self.ui:handleEvent(Event:new("BookmarkUpdated",
|
||||
self.ui.bookmark:getBookmarkForHighlight({
|
||||
page = self.ui.paging and item.pos0.page or item.pos0,
|
||||
datetime = item.datetime,
|
||||
})))
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user