refactor(settings): improve clarity of the warning dialogs (#1058)

This commit is contained in:
Pun Butrach 2023-07-31 21:53:23 +07:00 committed by GitHub
parent 95632b7f55
commit 8ca6418630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 120 additions and 118 deletions

View file

@ -28,7 +28,7 @@ class SAdvancedSection extends StatelessWidget {
ListTile(
contentPadding: const EdgeInsets.symmetric(horizontal: 20.0),
title: I18nText(
'settingsView.deleteKeystoreLabel',
'settingsView.regenerateKeystoreLabel',
child: const Text(
'',
style: TextStyle(
@ -37,7 +37,7 @@ class SAdvancedSection extends StatelessWidget {
),
),
),
subtitle: I18nText('settingsView.deleteKeystoreHint'),
subtitle: I18nText('settingsView.regenerateKeystoreHint'),
onTap: () => _showDeleteKeystoreDialog(context),
),
ListTile(
@ -78,11 +78,9 @@ class SAdvancedSection extends StatelessWidget {
return showDialog(
context: context,
builder: (context) => AlertDialog(
title: I18nText('warning'),
title: I18nText('settingsView.regenerateKeystoreDialogTitle'),
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
content: I18nText(
'settingsView.deleteKeystoreDialogText',
),
content: I18nText('settingsView.regenerateKeystoreDialogText'),
actions: <Widget>[
CustomMaterialButton(
isFilled: false,