mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Page overlap menu (cre): set nb of overlap lines (#4538)
Make this existing setting tunable with a menu item. Also make the Page overlap and Highlight menus use a checkbox, and their items grayed out when disabled.
This commit is contained in:
@@ -841,11 +841,12 @@ local page_overlap_styles = {
|
||||
dim = _("Gray out"),
|
||||
}
|
||||
|
||||
function ReaderView:genOverlapStyleMenu()
|
||||
function ReaderView:genOverlapStyleMenu(overlap_enabled_func)
|
||||
local view = self
|
||||
local get_overlap_style = function(style)
|
||||
return {
|
||||
text = page_overlap_styles[style],
|
||||
enabled_func = overlap_enabled_func,
|
||||
checked_func = function()
|
||||
return view.page_overlap_style == style
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user