mirror of
https://github.com/koreader/koreader
synced 2024-11-13 19:11:25 +00:00
d113cb9475
* Fix the Touch input probe on Trilogy devices that depend on the touch_probe_ev_epoch_time quirk (fix #630) * Expose a "Pageturn button inversion" feature in the Navigation menu (for all devices with keys) (fix #4446) * Allow ignoring the accelerometer on the Forma (Screen > Ignore accelerometer rotation events; also available from the Gesture Manager) (fix #4451) * Fix SleepCover handling on the Forma (fix #4457) * Make isWifiOn a tiny bit more accurate (check the actual WiFi module instead of sdio_wifi_pwr) * Move all flash related Screen options to the eInk submenu
34 lines
1.1 KiB
Lua
34 lines
1.1 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,
|
|
},
|
|
},
|
|
}
|
|
|
|
-- TODO reactivate if someone reverse engineers Android E Ink stuff
|
|
if not Device:isAndroid() then
|
|
table.insert(eink_settings_table.sub_item_table, 1, require("ui/elements/refresh_menu_table"))
|
|
end
|
|
|
|
return eink_settings_table
|