Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo webToon #145

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/controllers/watch/comic_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ComicController extends ReaderController<ExtensionMangaWatch> {
Map<String, MangaReadMode> readmode = {
'standard': MangaReadMode.standard,
'rightToLeft': MangaReadMode.rightToLeft,
'webTonn': MangaReadMode.webTonn,
'webToon': MangaReadMode.webToon,
};
final String setting = MiruStorage.getSetting(SettingKey.readingMode);
final readType = MangaReadMode.standard.obs;
Expand Down
2 changes: 1 addition & 1 deletion lib/models/manga_setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enum MangaReadMode {
// 从右到左
rightToLeft,
// 条漫
webTonn,
webToon,
}

@collection
Expand Down
4 changes: 2 additions & 2 deletions lib/models/manga_setting.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/views/pages/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class _SettingsPageState extends State<SettingsPage> {
final map = {
'comic-settings.standard'.i18n: 'standard',
'comic-settings.right-to-left'.i18n: 'rightToLeft',
'comic-settings.web-tonn'.i18n: 'webTonn',
'comic-settings.web-tonn'.i18n: 'webToon',
};
return map;
}(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class _ComicReaderContentState extends State<ComicReaderContent> {
final images = _c.watchData.value!.urls;
final readerType = _c.readType.value;
final cuurentPage = _c.currentPage.value;
if (readerType == MangaReadMode.webTonn) {
if (readerType == MangaReadMode.webToon) {
//zooming is inspired by: https://github.com/flutter/flutter/issues/86531
if (Platform.isAndroid) {
return Stack(children: [
Expand Down
6 changes: 3 additions & 3 deletions lib/views/pages/watch/reader/comic/comic_reader_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class _ComicReaderSettingsState extends State<ComicReaderSettings> {
label: Text('comic-settings.right-to-left'.i18n),
),
ButtonSegment<MangaReadMode>(
value: MangaReadMode.webTonn,
value: MangaReadMode.webToon,
label: Text('comic-settings.web-tonn'.i18n),
),
],
Expand Down Expand Up @@ -98,11 +98,11 @@ class _ComicReaderSettingsState extends State<ComicReaderSettings> {
),
const SizedBox(width: 8),
fluent.ToggleButton(
checked: _c.readType.value == MangaReadMode.webTonn,
checked: _c.readType.value == MangaReadMode.webToon,
onChanged: (value) {
if (value) {
setState(() {
_c.readType.value = MangaReadMode.webTonn;
_c.readType.value = MangaReadMode.webToon;
});
}
},
Expand Down
Loading