diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index ce2f8a67..b1ba3666 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -653,6 +653,7 @@ }, "configButtonLabel": "CONFIG", "useAsAlbumCoverTooltip": "Use as album cover", + "helpTooltip": "Help", "changelogTitle": "Changelog", "@changelogTitle": { diff --git a/lib/l10n/untranslated-messages.txt b/lib/l10n/untranslated-messages.txt index 8adf922b..041a55e7 100644 --- a/lib/l10n/untranslated-messages.txt +++ b/lib/l10n/untranslated-messages.txt @@ -19,6 +19,19 @@ "metadataTaskProcessingNotification", "metadataTaskPauseNoWiFiNotification", "configButtonLabel", - "useAsAlbumCoverTooltip" + "useAsAlbumCoverTooltip", + "helpTooltip" + ], + + "es": [ + "helpTooltip" + ], + + "fr": [ + "helpTooltip" + ], + + "ru": [ + "helpTooltip" ] } diff --git a/lib/widget/home_app_bar.dart b/lib/widget/home_app_bar.dart index c8f6f7fb..a722a4f8 100644 --- a/lib/widget/home_app_bar.dart +++ b/lib/widget/home_app_bar.dart @@ -9,6 +9,7 @@ import 'package:nc_photos/pref.dart'; import 'package:nc_photos/theme.dart'; import 'package:nc_photos/widget/account_picker_dialog.dart'; import 'package:nc_photos/widget/settings.dart'; +import 'package:url_launcher/url_launcher.dart'; /// AppBar for home screens class HomeSliverAppBar extends StatelessWidget { @@ -99,6 +100,10 @@ class HomeSliverAppBar extends StatelessWidget { value: _menuValueAbout, child: Text(L10n.of(context).settingsMenuLabel), ), + PopupMenuItem( + value: _menuValueHelp, + child: Text(L10n.of(context).helpTooltip), + ), ], onSelected: (option) { if (option >= 0) { @@ -107,6 +112,8 @@ class HomeSliverAppBar extends StatelessWidget { if (option == _menuValueAbout) { Navigator.of(context).pushNamed(Settings.routeName, arguments: SettingsArguments(account)); + } else if (option == _menuValueHelp) { + launch("https://gitlab.com/nkming2/nc-photos/-/wikis/home"); } } }, @@ -132,4 +139,5 @@ class HomeSliverAppBar extends StatelessWidget { final void Function(int)? onSelectedMenuActions; static const _menuValueAbout = -1; + static const _menuValueHelp = -2; }