mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
[UX] Introduce Taps & Gestures menu (#4677)
This more logically groups together various settings related to taps and gestures. Cf. <https://github.com/koreader/koreader/pull/4655#issuecomment-466808273>.
This commit is contained in:
@@ -137,7 +137,7 @@ function ReaderGesture:genMultiswipeSubmenu()
|
||||
end
|
||||
|
||||
function ReaderGesture:addToMainMenu(menu_items)
|
||||
menu_items.gesture = {
|
||||
menu_items.gesture_manager = {
|
||||
text = _("Gesture manager"),
|
||||
sub_item_table = {
|
||||
{
|
||||
|
||||
@@ -159,6 +159,12 @@ if Device:isAndroid() then
|
||||
end
|
||||
end
|
||||
|
||||
if Device:isTouchDevice() then
|
||||
common_settings.taps_and_gestures = {
|
||||
text = _("Taps and gestures"),
|
||||
}
|
||||
end
|
||||
|
||||
if Device:hasKeys() then
|
||||
common_settings.navigation = {
|
||||
text = _("Navigation"),
|
||||
|
||||
@@ -27,8 +27,10 @@ local order = {
|
||||
"----------------------------",
|
||||
"network",
|
||||
"screen",
|
||||
"document",
|
||||
"----------------------------",
|
||||
"taps_and_gestures",
|
||||
"navigation",
|
||||
"document",
|
||||
"----------------------------",
|
||||
"language",
|
||||
"device",
|
||||
@@ -37,7 +39,6 @@ local order = {
|
||||
device = {
|
||||
"time",
|
||||
"battery",
|
||||
"gesture",
|
||||
"mass_storage_settings",
|
||||
},
|
||||
network = {
|
||||
@@ -57,13 +58,18 @@ local order = {
|
||||
"screen_eink_opt",
|
||||
"color_rendering",
|
||||
"----------------------------",
|
||||
"menu_activate",
|
||||
"screen_disable_double_tab",
|
||||
"screen_toggle_gsensor",
|
||||
"----------------------------",
|
||||
"keep_screen_on",
|
||||
"fullscreen",
|
||||
},
|
||||
taps_and_gestures = {
|
||||
"gesture_manager",
|
||||
"frontlight_gesture_controller",
|
||||
"----------------------------",
|
||||
"menu_activate",
|
||||
"screen_disable_double_tab",
|
||||
},
|
||||
tools = {
|
||||
"calibre_wireless_connection",
|
||||
"evernote",
|
||||
@@ -83,7 +89,6 @@ local order = {
|
||||
},
|
||||
more_plugins = {
|
||||
"auto_frontlight",
|
||||
"frontlight_gesture_controller",
|
||||
"battery_statistics",
|
||||
"synchronize_time",
|
||||
"keep_alive",
|
||||
|
||||
@@ -46,9 +46,9 @@ local order = {
|
||||
"network",
|
||||
"screen",
|
||||
"----------------------------",
|
||||
"document",
|
||||
"taps_and_gestures",
|
||||
"navigation",
|
||||
"follow_links",
|
||||
"document",
|
||||
"----------------------------",
|
||||
"language",
|
||||
"device",
|
||||
@@ -59,7 +59,6 @@ local order = {
|
||||
device = {
|
||||
"time",
|
||||
"battery",
|
||||
"gesture",
|
||||
"mass_storage_settings",
|
||||
},
|
||||
network = {
|
||||
@@ -79,13 +78,20 @@ local order = {
|
||||
"screen_eink_opt",
|
||||
"color_rendering",
|
||||
"----------------------------",
|
||||
"menu_activate",
|
||||
"screen_disable_double_tab",
|
||||
"screen_toggle_gsensor",
|
||||
"----------------------------",
|
||||
"keep_screen_on",
|
||||
"fullscreen",
|
||||
},
|
||||
taps_and_gestures = {
|
||||
"gesture_manager",
|
||||
"frontlight_gesture_controller",
|
||||
"----------------------------",
|
||||
"follow_links",
|
||||
"----------------------------",
|
||||
"menu_activate",
|
||||
"screen_disable_double_tab",
|
||||
},
|
||||
tools = {
|
||||
"read_timer",
|
||||
"calibre_wireless_connection",
|
||||
@@ -103,7 +109,6 @@ local order = {
|
||||
},
|
||||
more_plugins = {
|
||||
"auto_frontlight",
|
||||
"frontlight_gesture_controller",
|
||||
"battery_statistics",
|
||||
"synchronize_time",
|
||||
"keep_alive",
|
||||
|
||||
Reference in New Issue
Block a user