mirror of
https://github.com/koreader/koreader
synced 2024-11-13 19:11:25 +00:00
177485f84f
* fixes #2898 (prevents accidentally triggering reboot or poweroff) Add ConfirmBox before reboot/power off * increases clarity by preventing second page * add "sleep" menu entry * Add exit menu hold callback
116 lines
2.9 KiB
Lua
116 lines
2.9 KiB
Lua
local order = {
|
|
["KOMenu:menu_buttons"] = {
|
|
"navi",
|
|
"typeset",
|
|
"setting",
|
|
"tools",
|
|
"search",
|
|
"filemanager",
|
|
"main",
|
|
},
|
|
navi = {
|
|
"table_of_contents",
|
|
"bookmarks",
|
|
"----------------------------",
|
|
"go_to",
|
|
"skim_to",
|
|
"----------------------------",
|
|
"follow_links",
|
|
},
|
|
typeset = {
|
|
"page_overlap",
|
|
"switch_zoom_mode",
|
|
"set_render_style",
|
|
"----------------------------",
|
|
"highlight_options",
|
|
"----------------------------",
|
|
"floating_punctuation",
|
|
"change_font",
|
|
"hyphenation",
|
|
"----------------------------",
|
|
"speed_reading_module_perception_expander",
|
|
},
|
|
setting = {
|
|
"read_from_right_to_left",
|
|
-- common settings
|
|
-- those that don't exist will simply be skipped during menu gen
|
|
"frontlight", -- if Device:hasFrontlight()
|
|
"night_mode",
|
|
"----------------------------",
|
|
"network",
|
|
"screen",
|
|
"screensaver",
|
|
"save_document",
|
|
"----------------------------",
|
|
"language",
|
|
"time",
|
|
"----------------------------",
|
|
"djvu_render_mode",
|
|
"status_bar",
|
|
},
|
|
tools = {
|
|
"read_timer",
|
|
"calibre_wireless_connection",
|
|
"evernote",
|
|
"statistics",
|
|
"progress_sync",
|
|
"zsync",
|
|
"news_downloader",
|
|
"----------------------------",
|
|
"more_plugins",
|
|
},
|
|
more_plugins = {
|
|
"auto_frontlight",
|
|
"frontlight_gesture_controller",
|
|
"battery_statistics",
|
|
"synchronize_time",
|
|
"keep_alive",
|
|
"terminal",
|
|
"storage_stat",
|
|
},
|
|
search = {
|
|
"dictionary_lookup",
|
|
"dictionary_settings",
|
|
"----------------------------",
|
|
"wikipedia_lookup",
|
|
"wikipedia_settings",
|
|
"----------------------------",
|
|
"goodreads",
|
|
"----------------------------",
|
|
"fulltext_search",
|
|
},
|
|
filemanager = {},
|
|
main = {
|
|
"history",
|
|
"book_status",
|
|
"book_info",
|
|
"----------------------------",
|
|
"system_statistics",
|
|
"----------------------------",
|
|
"ota_update", --[[ if Device:isKindle() or Device:isKobo() or
|
|
Device:isPocketBook() or Device:isAndroid() ]]--
|
|
"version",
|
|
"help",
|
|
"----------------------------",
|
|
"exit_menu",
|
|
},
|
|
help = {
|
|
"quickstart_guide",
|
|
"----------------------------",
|
|
"report_bug",
|
|
"----------------------------",
|
|
"about",
|
|
},
|
|
exit_menu = {
|
|
"restart_koreader",
|
|
"----------------------------",
|
|
"sleep", -- if Device:isKindle() or Device:isKobo()
|
|
"poweroff", -- if Device:isKobo()
|
|
"reboot", -- if Device:isKobo()
|
|
"----------------------------",
|
|
"exit",
|
|
}
|
|
}
|
|
|
|
return order
|