Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use Figma invite icon in search contacts

ashilkn81a414c813c3
diff --git a/mobile/apps/photos/assets/invite_contact.svg b/mobile/apps/photos/assets/invite_contact.svg
new file mode 100644
index 0000000000..3b5c48b3ea
--- /dev/null
+++ b/mobile/apps/photos/assets/invite_contact.svg
@@ -0,0 +1,6 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z" stroke="#999999" stroke-width="1.5"/>
+ <path d="M14 14H10C7.23858 14 5 16.2386 5 19C5 20.1046 5.89543 21 7 21H14" stroke="#999999" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
+ <rect x="14.748" y="13.75" width="8" height="8" rx="4" fill="#999999"/>
+ <path d="M18.748 15.75V19.75M20.748 17.75H16.748" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart
index 145d7623ab..043a1d876b 100644
--- a/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart
@@ -3,7 +3,7 @@ import "dart:async";
import "package:ente_components/ente_components.dart";
import "package:ente_pure_utils/ente_pure_utils.dart";
import "package:flutter/material.dart";
-import "package:hugeicons/hugeicons.dart";
+import "package:flutter_svg/flutter_svg.dart";
import "package:photos/core/constants.dart";
import "package:photos/events/event.dart";
import "package:photos/generated/l10n.dart";
@@ -17,7 +17,6 @@ import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/common/loading_widget.dart";
import "package:photos/ui/viewer/search/contact_avatar_widget.dart";
import "package:photos/ui/viewer/search/result/contact_result_page.dart";
-import "package:photos/ui/viewer/search/search_section_cta.dart";
import "package:photos/ui/viewer/search_tab/section_header.dart";
class ContactsSectionLoader extends StatefulWidget {
@@ -147,7 +146,10 @@ class _ContactsSectionState extends State<ContactsSection> {
),
),
const SizedBox(width: 8),
- const SearchSectionEmptyCTAIcon(SectionType.contacts),
+ const Padding(
+ padding: EdgeInsets.fromLTRB(8, 14, 8, 0),
+ child: ContactCTA(),
+ ),
],
),
);
@@ -250,6 +252,8 @@ class _ContactRecommendationState extends State<ContactRecommendation> {
}
class ContactCTA extends StatelessWidget {
+ static const _inviteAsset = "assets/invite_contact.svg";
+
const ContactCTA({super.key});
@override
@@ -270,11 +274,7 @@ class ContactCTA extends StatelessWidget {
shape: BoxShape.circle,
),
child: Center(
- child: HugeIcon(
- icon: HugeIcons.strokeRoundedUserAdd01,
- size: 24,
- color: colorScheme.textMuted,
- ),
+ child: SvgPicture.asset(_inviteAsset, width: 24, height: 24),
),
),
const SizedBox(height: 10),