Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update contacts search invite CTA

ashilkn3388b41c0037
diff --git a/mobile/apps/photos/changes/search-contacts-invite-icon.md b/mobile/apps/photos/changes/search-contacts-invite-icon.md
new file mode 100644
index 0000000000..271919c8ed
--- /dev/null
+++ b/mobile/apps/photos/changes/search-contacts-invite-icon.md
@@ -0,0 +1 @@
+- Updated the contacts search invite action to use the refreshed icon treatment.
diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart b/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart
index d444d506a2..a88943a3f0 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart
@@ -1,6 +1,7 @@
import "package:ente_components/ente_components.dart";
import "package:ente_pure_utils/ente_pure_utils.dart";
import "package:flutter/material.dart";
+import "package:flutter_svg/flutter_svg.dart";
import "package:intl/intl.dart";
import "package:photos/generated/l10n.dart";
import "package:photos/models/search/generic_search_result.dart";
@@ -112,6 +113,8 @@ class SearchableItemWidget extends StatelessWidget {
}
class SearchableItemPlaceholder extends StatelessWidget {
+ static const _inviteAsset = "assets/invite_contact.svg";
+
final SectionType sectionType;
const SearchableItemPlaceholder(this.sectionType, {super.key});
@@ -132,7 +135,14 @@ class SearchableItemPlaceholder extends StatelessWidget {
),
child: Container(
color: colorScheme.fillFaint,
- child: Icon(sectionType.getCTAIcon(), color: colorScheme.strokeMuted),
+ child: Center(
+ child: sectionType == SectionType.contacts
+ ? SvgPicture.asset(_inviteAsset, width: 20, height: 20)
+ : Icon(
+ sectionType.getCTAIcon(),
+ color: colorScheme.strokeMuted,
+ ),
+ ),
),
),
title: Text(