mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Supported devices: - Boyue T61 and *some* clones - Boyue T62 and *some* clones - Onyx C67 - Energy Sistem (which are in fact Boyue T62 clones). Was tested on a energy pro 4. Others may work with the same controller too, but are disabled by default. Requires https://github.com/koreader/koreader-base/pull/798 Requires https://github.com/koreader/android-luajit-launcher/pull/96 Fixes #4373 Fixes #1613 (supported devices will show the "full refresh rate" option under eink settings. Others won't) Related #4228 (need to add support for this specific device to work)
33 lines
1.0 KiB
Lua
33 lines
1.0 KiB
Lua
local Device = require("device")
|
|
local _ = require("gettext")
|
|
local Screen = Device.screen
|
|
|
|
local eink_settings_table = {
|
|
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,
|
|
},
|
|
require("ui/elements/flash_ui"),
|
|
require("ui/elements/flash_keyboard"),
|
|
{
|
|
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,
|
|
},
|
|
},
|
|
}
|
|
|
|
if Device.hasEinkScreen then
|
|
table.insert(eink_settings_table.sub_item_table, 1, require("ui/elements/refresh_menu_table"))
|
|
end
|
|
|
|
return eink_settings_table
|