2018-12-12 20:32:07 +00:00
|
|
|
local Device = require("device")
|
2014-11-06 05:16:35 +00:00
|
|
|
local _ = require("gettext")
|
2018-12-12 20:32:07 +00:00
|
|
|
local Screen = Device.screen
|
2014-11-06 05:16:35 +00:00
|
|
|
|
2018-12-12 20:32:07 +00:00
|
|
|
local eink_settings_table = {
|
2018-10-10 19:34:47 +00:00
|
|
|
text = _("E-ink settings"),
|
|
|
|
sub_item_table = {
|
|
|
|
{
|
|
|
|
text = _("Use smaller panning rate"),
|
|
|
|
checked_func = function() return Screen.low_pan_rate end,
|
|
|
|
callback = function()
|
|
|
|
Screen.low_pan_rate = not Screen.low_pan_rate
|
|
|
|
G_reader_settings:saveSetting("low_pan_rate", Screen.low_pan_rate)
|
|
|
|
end,
|
|
|
|
},
|
2019-01-08 01:59:47 +00:00
|
|
|
require("ui/elements/flash_ui"),
|
|
|
|
require("ui/elements/flash_keyboard"),
|
2018-10-10 19:34:47 +00:00
|
|
|
{
|
|
|
|
text = _("Avoid mandatory black flashes in UI"),
|
|
|
|
checked_func = function() return G_reader_settings:isTrue("avoid_flashing_ui") end,
|
|
|
|
callback = function()
|
|
|
|
G_reader_settings:flipNilOrFalse("avoid_flashing_ui")
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
2014-11-06 05:16:35 +00:00
|
|
|
}
|
2018-12-12 20:32:07 +00:00
|
|
|
|
2019-02-08 10:12:43 +00:00
|
|
|
if Device:hasEinkScreen() then
|
2018-12-12 20:32:07 +00:00
|
|
|
table.insert(eink_settings_table.sub_item_table, 1, require("ui/elements/refresh_menu_table"))
|
|
|
|
end
|
|
|
|
|
|
|
|
return eink_settings_table
|