diff --git a/assets/i18n/en_US.json b/assets/i18n/en_US.json index aa514089..8317556d 100644 --- a/assets/i18n/en_US.json +++ b/assets/i18n/en_US.json @@ -1,6 +1,7 @@ { "okButton": "OK", "cancelButton": "Cancel", + "dismissButton": "Dismiss", "quitButton": "Quit", "updateButton": "Update", "enabledLabel": "Enabled", @@ -134,6 +135,7 @@ "setRequiredOption": "Some patches require options to be set:\n\n{patches}\n\nPlease set them before continuing." }, "patchOptionsView": { + "resetOptionsTooltip": "Reset patch options", "viewTitle": "Patch options", "saveOptions": "Save", diff --git a/lib/ui/views/patch_options/patch_options_view.dart b/lib/ui/views/patch_options/patch_options_view.dart index 0608da24..7a21eb49 100644 --- a/lib/ui/views/patch_options/patch_options_view.dart +++ b/lib/ui/views/patch_options/patch_options_view.dart @@ -48,6 +48,10 @@ class PatchOptionsView extends StatelessWidget { icon: const Icon( Icons.history, ), + tooltip: FlutterI18n.translate( + context, + 'patchOptionsView.resetOptionsTooltip', + ), ), ], ), diff --git a/lib/ui/views/patch_options/patch_options_viewmodel.dart b/lib/ui/views/patch_options/patch_options_viewmodel.dart index 7a4cb9d8..b8813d49 100644 --- a/lib/ui/views/patch_options/patch_options_viewmodel.dart +++ b/lib/ui/views/patch_options/patch_options_viewmodel.dart @@ -147,7 +147,7 @@ class PatchOptionsViewModel extends BaseViewModel { ), actions: [ CustomMaterialButton( - label: I18nText('okButton'), + label: I18nText('cancelButton'), onPressed: () { Navigator.of(context).pop(); }, @@ -165,7 +165,7 @@ class PatchOptionsViewModel extends BaseViewModel { .map((e) { return CustomCard( padding: const EdgeInsets.all(4), - backgroundColor: Theme.of(context).colorScheme.secondaryContainer, + backgroundColor: Theme.of(context).colorScheme.surface, onTap: () { addOption(e); Navigator.pop(context); @@ -186,9 +186,9 @@ class PatchOptionsViewModel extends BaseViewModel { e.description, style: TextStyle( fontSize: 14, - color: Theme.of(context).colorScheme.onSecondaryContainer, + color: Theme.of(context).colorScheme.onSurface, ), - ) + ), ], ), ),