Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] UI Changes

Neeraj Guptaa2d022f7517e
diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dart
index d9e5696eb0..370a855bdb 100644
--- a/mobile/lib/generated/intl/messages_en.dart
+++ b/mobile/lib/generated/intl/messages_en.dart
@@ -825,6 +825,8 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Files saved to gallery"),
"findPeopleByName":
MessageLookupByLibrary.simpleMessage("Find people quickly by name"),
+ "findThemQuickly":
+ MessageLookupByLibrary.simpleMessage("Find them quickly"),
"flip": MessageLookupByLibrary.simpleMessage("Flip"),
"forYourMemories":
MessageLookupByLibrary.simpleMessage("for your memories"),
diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dart
index d1ae7f88cf..99d63d56bf 100644
--- a/mobile/lib/generated/l10n.dart
+++ b/mobile/lib/generated/l10n.dart
@@ -8849,6 +8849,17 @@ class S {
);
}
+ /// `Find them quickly`
+ String get findThemQuickly {
+ return Intl.message(
+ 'Find them quickly',
+ name: 'findThemQuickly',
+ desc:
+ 'Subtitle to indicate that the user can find people quickly by name',
+ args: [],
+ );
+ }
+
/// `Find people quickly by name`
String get findPeopleByName {
return Intl.message(
diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arb
index 8c6edcdb7f..4c1cc42249 100644
--- a/mobile/lib/l10n/intl_en.arb
+++ b/mobile/lib/l10n/intl_en.arb
@@ -1246,6 +1246,10 @@
"locations": "Locations",
"descriptions": "Descriptions",
"addAName": "Add a name",
+ "findThemQuickly": "Find them quickly",
+ "@findThemQuickly": {
+ "description": "Subtitle to indicate that the user can find people quickly by name"
+ },
"findPeopleByName": "Find people quickly by name",
"addViewers": "{count, plural, zero {Add viewer} one {Add viewer} other {Add viewers}}",
"addCollaborators": "{count, plural, zero {Add collaborator} one {Add collaborator} other {Add collaborators}}",
diff --git a/mobile/lib/ui/viewer/gallery/hierarchical_search_gallery.dart b/mobile/lib/ui/viewer/gallery/hierarchical_search_gallery.dart
index 234848549b..4f88ac0256 100644
--- a/mobile/lib/ui/viewer/gallery/hierarchical_search_gallery.dart
+++ b/mobile/lib/ui/viewer/gallery/hierarchical_search_gallery.dart
@@ -177,8 +177,8 @@ class _HierarchicalSearchGalleryState extends State<HierarchicalSearchGallery> {
thumbnailFallback: false,
),
actionIcon: Icons.add_outlined,
- text: S.of(context).addAName,
- subText: S.of(context).findPeopleByName,
+ text: S.of(context).savePerson,
+ subText: S.of(context).findThemQuickly,
onTap: () async {
final result = await showAssignPersonAction(
context,
diff --git a/mobile/lib/ui/viewer/people/cluster_page.dart b/mobile/lib/ui/viewer/people/cluster_page.dart
index 1565482b33..625c3b40a3 100644
--- a/mobile/lib/ui/viewer/people/cluster_page.dart
+++ b/mobile/lib/ui/viewer/people/cluster_page.dart
@@ -141,8 +141,8 @@ class _ClusterPageState extends State<ClusterPage> {
clusterID: widget.clusterID,
),
actionIcon: Icons.add_outlined,
- text: S.of(context).addAName,
- subText: S.of(context).findPeopleByName,
+ text: S.of(context).savePerson,
+ subText: S.of(context).findThemQuickly,
onTap: () async {
if (widget.personID == null) {
final result = await showAssignPersonAction(
diff --git a/mobile/lib/ui/viewer/people/people_banner.dart b/mobile/lib/ui/viewer/people/people_banner.dart
index 033a35eb55..8380853739 100644
--- a/mobile/lib/ui/viewer/people/people_banner.dart
+++ b/mobile/lib/ui/viewer/people/people_banner.dart
@@ -17,7 +17,7 @@ class PeopleBanner extends StatelessWidget {
final String? subText;
final GestureTapCallback onTap;
-const PeopleBanner({
+ const PeopleBanner({
super.key,
required this.type,
this.startIcon,
@@ -54,14 +54,19 @@ const PeopleBanner({
case PeopleBannerType.addName:
assert(faceWidget != null);
backgroundColor = colorScheme.backgroundElevated;
- startWidget = SizedBox(
- width: 56,
- height: 56,
- child: ClipRRect(
- borderRadius: const BorderRadius.all(
- Radius.circular(4),
+ startWidget = Padding(
+ padding: const EdgeInsets.all(4.0),
+ child: SizedBox(
+ width: 56,
+ height: 56,
+ child: ClipPath(
+ clipper: ShapeBorderClipper(
+ shape: ContinuousRectangleBorder(
+ borderRadius: BorderRadius.circular(40),
+ ),
+ ),
+ child: faceWidget!,
),
- child: faceWidget!,
),
);
roundedActionIcon = false;