mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add a dog-ear-like icon at the above right corner of bookmarked page
And tap the above right corner will toggle the bookmark on this page on/off.
This commit is contained in:
16
frontend/ui/reader/readerdogear.lua
Normal file
16
frontend/ui/reader/readerdogear.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
ReaderDogear = RightContainer:new{}
|
||||
|
||||
function ReaderDogear:init()
|
||||
local widget = ImageWidget:new{
|
||||
file = "resources/icons/dogear.png",
|
||||
}
|
||||
local icon_size = widget:getSize()
|
||||
self.dimen = Geom:new{w = Screen:getWidth(), h = icon_size.h}
|
||||
self[1] = widget
|
||||
end
|
||||
|
||||
function ReaderDogear:onSetDogearVisibility(visible)
|
||||
self.view.dogear_visible = visible
|
||||
return true
|
||||
end
|
||||
Reference in New Issue
Block a user