mirror of https://github.com/koreader/koreader
MenuSorter: split out menu order configuration
parent
33c848f813
commit
ddf590eb6d
@ -0,0 +1,62 @@
|
||||
local order = {
|
||||
["KOMenu:menu_buttons"] = {
|
||||
"setting",
|
||||
"tools",
|
||||
"search",
|
||||
"main",
|
||||
},
|
||||
setting = {
|
||||
"show_hidden_files",
|
||||
"----------------------------",
|
||||
"sort_by",
|
||||
"reverse_sorting",
|
||||
"----------------------------",
|
||||
"start_with_last_opened_file",
|
||||
"screensaver",
|
||||
"----------------------------",
|
||||
-- common settings
|
||||
-- those that don't exist will simply be skipped during menu gen
|
||||
"frontlight", -- if Device:hasFrontlight()
|
||||
"night_mode",
|
||||
"----------------------------",
|
||||
"network",
|
||||
"screen",
|
||||
"save_document",
|
||||
"----------------------------",
|
||||
"language",
|
||||
"----------------------------",
|
||||
"show_advanced_options",
|
||||
-- end common settings
|
||||
},
|
||||
tools = {
|
||||
"calibre_wireless_connection",
|
||||
"evernote",
|
||||
"goodreads",
|
||||
"keep_alive",
|
||||
"statistics",
|
||||
"storage_stat",
|
||||
"cloud_storage",
|
||||
"----------------------------",
|
||||
"advanced_settings",
|
||||
"developer_options",
|
||||
},
|
||||
search = {
|
||||
"dictionary_lookup",
|
||||
"find_book_in_calibre_catalog",
|
||||
"find_file",
|
||||
"----------------------------",
|
||||
"opds_catalog",
|
||||
},
|
||||
main = {
|
||||
"history",
|
||||
"open_last_document",
|
||||
"----------------------------",
|
||||
"ota_update", -- if Device:isKindle() or Device:isKobo() or Device:isPocketBook() or Device:isAndroid()
|
||||
"version",
|
||||
"help",
|
||||
"----------------------------",
|
||||
"exit",
|
||||
},
|
||||
}
|
||||
|
||||
return order
|
@ -0,0 +1,75 @@
|
||||
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",
|
||||
"floating_punctuation",
|
||||
"highlight_options",
|
||||
"change_font",
|
||||
"hyphenation",
|
||||
},
|
||||
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",
|
||||
"----------------------------",
|
||||
"djvu_render_mode",
|
||||
"status_bar",
|
||||
"show_advanced_options",
|
||||
},
|
||||
tools = {
|
||||
"calibre_wireless_connection",
|
||||
"evernote",
|
||||
"goodreads",
|
||||
"keep_alive",
|
||||
"statistics",
|
||||
"storage_stat",
|
||||
"speed_reading_module_perception_expander",
|
||||
"synchronize_time",
|
||||
"progress_sync",
|
||||
"zsync",
|
||||
},
|
||||
search = {
|
||||
"dictionary_lookup",
|
||||
"wikipedia_lookup",
|
||||
"fulltext_search",
|
||||
},
|
||||
filemanager = {},
|
||||
main = {
|
||||
"history",
|
||||
"book_status",
|
||||
"----------------------------",
|
||||
"ota_update", -- if Device:isKindle() or Device:isKobo() or Device:isPocketBook() or Device:isAndroid()
|
||||
"version",
|
||||
"help",
|
||||
"----------------------------",
|
||||
"exit",
|
||||
},
|
||||
}
|
||||
|
||||
return order
|
Loading…
Reference in New Issue