mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
move minibar configurations to reader menu
and fix #1446 by adding progress percentage in minibar.
This commit is contained in:
@@ -73,14 +73,17 @@ function ReaderView:init()
|
||||
self.state.page = nil
|
||||
-- fix inherited dim_area for following opened documents
|
||||
self:resetDimArea()
|
||||
self:resetLayout()
|
||||
self:addWidgets()
|
||||
self.ui:registerPostInitCallback(function()
|
||||
self.ui.menu:registerToMainMenu(self.footer)
|
||||
end)
|
||||
end
|
||||
|
||||
function ReaderView:resetDimArea()
|
||||
self.dim_area = Geom:new{w = 0, h = 0}
|
||||
end
|
||||
|
||||
function ReaderView:resetLayout()
|
||||
function ReaderView:addWidgets()
|
||||
self.dogear = ReaderDogear:new{
|
||||
view = self,
|
||||
ui = self.ui,
|
||||
@@ -105,6 +108,12 @@ function ReaderView:resetLayout()
|
||||
self[3] = self.flipping
|
||||
end
|
||||
|
||||
function ReaderView:resetLayout()
|
||||
for i, widget in ipairs(self) do
|
||||
widget:init()
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderView:paintTo(bb, x, y)
|
||||
DEBUG("painting", self.visible_area, "to", x, y)
|
||||
if self.page_scroll then
|
||||
|
||||
Reference in New Issue
Block a user