[feat] SkimToWidget chapter markers & next/prev chapter/bookmark (#3389)

https://github.com/koreader/koreader/issues/2819#issuecomment-332261968
+ refactoring code in skimtowidget
+ add chapter markers
+ add next/prev chapter buttons
+ add next/prev bookmark buttons
This commit is contained in:
Robert
2017-10-22 13:09:49 +02:00
committed by Frans de Jonge
parent 23ab33c0b9
commit af61153df2
3 changed files with 217 additions and 115 deletions

View File

@@ -107,9 +107,9 @@ function Button:init()
end
end
function Button:setText(text)
function Button:setText(text, width)
self.text = text
self.width = nil
self.width = width
self:init()
end