From af12bbdf6b27ee777088bb3c1603e7c369b663d7 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Tue, 24 Aug 2021 19:41:10 +0800 Subject: [PATCH] Group viewer options in settings page --- lib/l10n/app_en.arb | 4 ++++ lib/l10n/untranslated-messages.txt | 4 ++++ lib/widget/settings.dart | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 24e23195..96c660c9 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -313,6 +313,10 @@ "@settingsExifSupportTrueSubtitle": { "description": "Subtitle of the EXIF support setting when the value is true. The goal is to warn user about the possible side effects of enabling this setting" }, + "settingsViewerSectionTitle": "Photo viewer", + "@settingsViewerSectionTitle": { + "description": "Settings for the photo viewer" + }, "settingsScreenBrightnessTitle": "Screen brightness", "settingsScreenBrightnessDescription": "Adjust screen brightness when viewing a photo", "@settingsScreenBrightnessDescription": { diff --git a/lib/l10n/untranslated-messages.txt b/lib/l10n/untranslated-messages.txt index 2053ce4b..460c0e69 100644 --- a/lib/l10n/untranslated-messages.txt +++ b/lib/l10n/untranslated-messages.txt @@ -1,5 +1,6 @@ { "el": [ + "settingsViewerSectionTitle", "settingsScreenBrightnessTitle", "settingsScreenBrightnessDescription", "listEmptyText", @@ -27,6 +28,7 @@ ], "es": [ + "settingsViewerSectionTitle", "settingsScreenBrightnessTitle", "settingsScreenBrightnessDescription", "helpTooltip", @@ -34,6 +36,7 @@ ], "fr": [ + "settingsViewerSectionTitle", "settingsScreenBrightnessTitle", "settingsScreenBrightnessDescription", "helpTooltip", @@ -41,6 +44,7 @@ ], "ru": [ + "settingsViewerSectionTitle", "settingsScreenBrightnessTitle", "settingsScreenBrightnessDescription", "helpTooltip", diff --git a/lib/widget/settings.dart b/lib/widget/settings.dart index 22e99f58..0e32b061 100644 --- a/lib/widget/settings.dart +++ b/lib/widget/settings.dart @@ -91,7 +91,9 @@ class _SettingsState extends State { value: _isEnableExif, onChanged: (value) => _onExifSupportChanged(context, value), ), - if (platform_k.isMobile) + if (platform_k.isMobile) ...[ + _buildCaption( + context, L10n.of(context).settingsViewerSectionTitle), SwitchListTile( title: Text(L10n.of(context).settingsScreenBrightnessTitle), subtitle: Text( @@ -100,6 +102,7 @@ class _SettingsState extends State { onChanged: (value) => _onScreenBrightnessChanged(context, value), ), + ], _buildCaption( context, L10n.of(context).settingsAboutSectionTitle), ListTile(