Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

UI/UX consistencies

ashilkn0914d9e2ed56
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index d0d4cad645..31438e6ceb 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -2529,14 +2529,5 @@
"deleteHiddenFilesFromDevice": "Delete hidden files from device",
"deleteHiddenFilesFromDeviceDescription": "Delete local copies of hidden files from your device",
"deleteOnDeviceFiles": "Delete on device files",
- "noHiddenFilesOnDevice": "No hidden files on device",
- "deleteSelectedFromDevice": "Delete selected from device",
- "deleteFromDeviceConfirmation": "Are you sure you want to delete {count, plural, =1{1 file} other{{count} files}} from your device? The files will remain safe in the cloud.",
- "@deleteFromDeviceConfirmation": {
- "placeholders": {
- "count": {
- "type": "int"
- }
- }
- }
+ "noHiddenFilesOnDevice": "No hidden files on device"
}
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
index ad0c630c53..e251f94e88 100644
--- a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -1056,15 +1056,14 @@ class _FileSelectionActionsWidgetState
Future<void> _deleteSelectedFromDevice() async {
final filesToDelete = widget.selectedFiles.files.toList();
- final count = filesToDelete.length;
final l10n = AppLocalizations.of(context);
final actionResult = await showActionSheet(
context: context,
buttons: [
ButtonWidget(
- labelText: l10n.deleteSelectedFromDevice,
- buttonType: ButtonType.critical,
+ labelText: l10n.deleteFromDevice,
+ buttonType: ButtonType.neutral,
buttonSize: ButtonSize.large,
shouldStickToDarkTheme: true,
buttonAction: ButtonAction.first,
@@ -1090,8 +1089,7 @@ class _FileSelectionActionsWidgetState
isInAlert: true,
),
],
- title: l10n.deleteFromDevice,
- body: l10n.deleteFromDeviceConfirmation(count: count),
+ body: l10n.theseItemsWillBeDeletedFromYourDevice,
actionSheetType: ActionSheetType.defaultActionSheet,
);
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/cleanup_hidden_from_device_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/cleanup_hidden_from_device_page.dart
index 60bf7e98ce..ec0edb9d00 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/cleanup_hidden_from_device_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/cleanup_hidden_from_device_page.dart
@@ -173,8 +173,8 @@ class _CleanupHiddenFromDevicePageState
context: context,
buttons: [
ButtonWidget(
- labelText: l10n.deleteAll,
- buttonType: ButtonType.critical,
+ labelText: l10n.deleteFromDevice,
+ buttonType: ButtonType.neutral,
buttonSize: ButtonSize.large,
shouldStickToDarkTheme: true,
buttonAction: ButtonAction.first,
@@ -200,8 +200,7 @@ class _CleanupHiddenFromDevicePageState
isInAlert: true,
),
],
- title: l10n.deleteFromDevice,
- body: l10n.deleteFromDeviceConfirmation(count: allFiles.length),
+ body: l10n.theseItemsWillBeDeletedFromYourDevice,
actionSheetType: ActionSheetType.defaultActionSheet,
);