mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 04:55:37 +02:00
refactor(settings): improve clarity of the warning dialogs (#1058)
This commit is contained in:
parent
95632b7f55
commit
8ca6418630
39 changed files with 120 additions and 118 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue