improve reader menu

This commit is contained in:
nyne
2024-10-30 10:16:29 +08:00
parent 363f3641fb
commit 97a6e456a5
2 changed files with 30 additions and 18 deletions

View File

@@ -144,7 +144,9 @@
"The directory name will be used as the comic title. And the name of chapter directories will be used as the chapter titles." : "目录名称将被用作漫画标题。章节目录的名称将被用作章节标题。", "The directory name will be used as the comic title. And the name of chapter directories will be used as the chapter titles." : "目录名称将被用作漫画标题。章节目录的名称将被用作章节标题。",
"Export as cbz": "导出为cbz", "Export as cbz": "导出为cbz",
"Select a cbz file." : "选择一个cbz文件", "Select a cbz file." : "选择一个cbz文件",
"A cbz file" : "一个cbz文件" "A cbz file" : "一个cbz文件",
"Fullscreen": "全屏",
"Exit": "退出"
}, },
"zh_TW": { "zh_TW": {
"Home": "首頁", "Home": "首頁",
@@ -291,6 +293,8 @@
"The directory name will be used as the comic title. And the name of chapter directories will be used as the chapter titles." : "目錄名稱將被用作漫畫標題。章節目錄的名稱將被用作章節標題。", "The directory name will be used as the comic title. And the name of chapter directories will be used as the chapter titles." : "目錄名稱將被用作漫畫標題。章節目錄的名稱將被用作章節標題。",
"Export as cbz": "匯出為cbz", "Export as cbz": "匯出為cbz",
"Select a cbz file." : "選擇一個cbz文件", "Select a cbz file." : "選擇一個cbz文件",
"A cbz file" : "一個cbz文件" "A cbz file" : "一個cbz文件",
"Fullscreen": "全螢幕",
"Exit": "退出"
} }
} }

View File

@@ -183,25 +183,33 @@ class _ReaderGestureDetectorState extends State<_ReaderGestureDetector> {
location, location,
[ [
MenuEntry( MenuEntry(
text: "Settings".tl, icon: Icons.settings,
onClick: () { text: "Settings".tl,
context.readerScaffold.openSetting(); onClick: () {
}), context.readerScaffold.openSetting();
},
),
MenuEntry( MenuEntry(
text: "Chapters".tl, icon: Icons.menu,
onClick: () { text: "Chapters".tl,
context.readerScaffold.openChapterDrawer(); onClick: () {
}), context.readerScaffold.openChapterDrawer();
},
),
MenuEntry( MenuEntry(
text: "Fullscreen".tl, icon: Icons.fullscreen,
onClick: () { text: "Fullscreen".tl,
context.reader.fullscreen(); onClick: () {
}), context.reader.fullscreen();
},
),
MenuEntry( MenuEntry(
text: "Exit".tl, icon: Icons.exit_to_app,
onClick: () { text: "Exit".tl,
context.pop(); onClick: () {
}), context.pop();
},
),
], ],
); );
} }