mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 17:26:18 +01:00
Group viewer options in settings page
This commit is contained in:
parent
8d255b9238
commit
af12bbdf6b
3 changed files with 12 additions and 1 deletions
|
@ -313,6 +313,10 @@
|
||||||
"@settingsExifSupportTrueSubtitle": {
|
"@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"
|
"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",
|
"settingsScreenBrightnessTitle": "Screen brightness",
|
||||||
"settingsScreenBrightnessDescription": "Adjust screen brightness when viewing a photo",
|
"settingsScreenBrightnessDescription": "Adjust screen brightness when viewing a photo",
|
||||||
"@settingsScreenBrightnessDescription": {
|
"@settingsScreenBrightnessDescription": {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"el": [
|
"el": [
|
||||||
|
"settingsViewerSectionTitle",
|
||||||
"settingsScreenBrightnessTitle",
|
"settingsScreenBrightnessTitle",
|
||||||
"settingsScreenBrightnessDescription",
|
"settingsScreenBrightnessDescription",
|
||||||
"listEmptyText",
|
"listEmptyText",
|
||||||
|
@ -27,6 +28,7 @@
|
||||||
],
|
],
|
||||||
|
|
||||||
"es": [
|
"es": [
|
||||||
|
"settingsViewerSectionTitle",
|
||||||
"settingsScreenBrightnessTitle",
|
"settingsScreenBrightnessTitle",
|
||||||
"settingsScreenBrightnessDescription",
|
"settingsScreenBrightnessDescription",
|
||||||
"helpTooltip",
|
"helpTooltip",
|
||||||
|
@ -34,6 +36,7 @@
|
||||||
],
|
],
|
||||||
|
|
||||||
"fr": [
|
"fr": [
|
||||||
|
"settingsViewerSectionTitle",
|
||||||
"settingsScreenBrightnessTitle",
|
"settingsScreenBrightnessTitle",
|
||||||
"settingsScreenBrightnessDescription",
|
"settingsScreenBrightnessDescription",
|
||||||
"helpTooltip",
|
"helpTooltip",
|
||||||
|
@ -41,6 +44,7 @@
|
||||||
],
|
],
|
||||||
|
|
||||||
"ru": [
|
"ru": [
|
||||||
|
"settingsViewerSectionTitle",
|
||||||
"settingsScreenBrightnessTitle",
|
"settingsScreenBrightnessTitle",
|
||||||
"settingsScreenBrightnessDescription",
|
"settingsScreenBrightnessDescription",
|
||||||
"helpTooltip",
|
"helpTooltip",
|
||||||
|
|
|
@ -91,7 +91,9 @@ class _SettingsState extends State<Settings> {
|
||||||
value: _isEnableExif,
|
value: _isEnableExif,
|
||||||
onChanged: (value) => _onExifSupportChanged(context, value),
|
onChanged: (value) => _onExifSupportChanged(context, value),
|
||||||
),
|
),
|
||||||
if (platform_k.isMobile)
|
if (platform_k.isMobile) ...[
|
||||||
|
_buildCaption(
|
||||||
|
context, L10n.of(context).settingsViewerSectionTitle),
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
title: Text(L10n.of(context).settingsScreenBrightnessTitle),
|
title: Text(L10n.of(context).settingsScreenBrightnessTitle),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
|
@ -100,6 +102,7 @@ class _SettingsState extends State<Settings> {
|
||||||
onChanged: (value) =>
|
onChanged: (value) =>
|
||||||
_onScreenBrightnessChanged(context, value),
|
_onScreenBrightnessChanged(context, value),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
_buildCaption(
|
_buildCaption(
|
||||||
context, L10n.of(context).settingsAboutSectionTitle),
|
context, L10n.of(context).settingsAboutSectionTitle),
|
||||||
ListTile(
|
ListTile(
|
||||||
|
|
Loading…
Reference in a new issue