mod: overhaul reader menu with long-press actions and quick toggles
Consolidate dictionary items: remove "Lookup Word History" and "Delete Dictionary Cache" from the menu. Long-press on "Lookup Word" opens history; delete-dict-cache is now a sentinel entry at the bottom of the history list. Replace "Reading Orientation" with "Toggle Portrait/Landscape" that toggles between two configurable preferred orientations (new settings: Preferred Portrait, Preferred Landscape). Long-press opens a manual 4-option orientation sub-menu. Add "Toggle Font Size" menu item that cycles through font sizes and applies on menu exit (with section re-layout). Rename "Letterbox Fill" to "Override Letterbox Fill" and "Sync Progress" to "Sync Reading Progress" in reader menu. All long-press flows use ignoreNextConfirmRelease to prevent the button release from triggering actions on the subsequent screen. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -365,6 +365,11 @@ enum class StrId : uint16_t {
|
||||
STR_DICT_CACHE_DELETED,
|
||||
STR_NO_CACHE_TO_DELETE,
|
||||
STR_TABLE_OF_CONTENTS,
|
||||
STR_TOGGLE_ORIENTATION,
|
||||
STR_TOGGLE_FONT_SIZE,
|
||||
STR_OVERRIDE_LETTERBOX_FILL,
|
||||
STR_PREFERRED_PORTRAIT,
|
||||
STR_PREFERRED_LANDSCAPE,
|
||||
// Sentinel - must be last
|
||||
_COUNT
|
||||
};
|
||||
|
||||
@@ -281,7 +281,7 @@ STR_HW_LEFT_LABEL: "Left (3rd button)"
|
||||
STR_HW_RIGHT_LABEL: "Right (4th button)"
|
||||
STR_GO_TO_PERCENT: "Go to %"
|
||||
STR_GO_HOME_BUTTON: "Go Home"
|
||||
STR_SYNC_PROGRESS: "Sync Progress"
|
||||
STR_SYNC_PROGRESS: "Sync Reading Progress"
|
||||
STR_DELETE_CACHE: "Delete Book Cache"
|
||||
STR_CHAPTER_PREFIX: "Chapter: "
|
||||
STR_PAGES_SEPARATOR: " pages | "
|
||||
@@ -331,3 +331,8 @@ STR_BOOKMARK_REMOVED: "Bookmark removed"
|
||||
STR_DICT_CACHE_DELETED: "Dictionary cache deleted"
|
||||
STR_NO_CACHE_TO_DELETE: "No cache to delete"
|
||||
STR_TABLE_OF_CONTENTS: "Table of Contents"
|
||||
STR_TOGGLE_ORIENTATION: "Toggle Portrait/Landscape"
|
||||
STR_TOGGLE_FONT_SIZE: "Toggle Font Size"
|
||||
STR_OVERRIDE_LETTERBOX_FILL: "Override Letterbox Fill"
|
||||
STR_PREFERRED_PORTRAIT: "Preferred Portrait"
|
||||
STR_PREFERRED_LANDSCAPE: "Preferred Landscape"
|
||||
|
||||
Reference in New Issue
Block a user