Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update icons + update comment deletion sheet for socials

ashilkn0a66c394ee17
diff --git a/mobile/apps/photos/assets/2.0x/ducky_garbage_bin_opened.png b/mobile/apps/photos/assets/2.0x/ducky_garbage_bin_opened.png
new file mode 100644
index 0000000000..d4967b8ab1
Binary files /dev/null and b/mobile/apps/photos/assets/2.0x/ducky_garbage_bin_opened.png differ
diff --git a/mobile/apps/photos/assets/3.0x/ducky_garbage_bin_opened.png b/mobile/apps/photos/assets/3.0x/ducky_garbage_bin_opened.png
new file mode 100644
index 0000000000..13a2b10b39
Binary files /dev/null and b/mobile/apps/photos/assets/3.0x/ducky_garbage_bin_opened.png differ
diff --git a/mobile/apps/photos/assets/ducky_garbage_bin_opened.png b/mobile/apps/photos/assets/ducky_garbage_bin_opened.png
new file mode 100644
index 0000000000..c45ca42f27
Binary files /dev/null and b/mobile/apps/photos/assets/ducky_garbage_bin_opened.png differ
diff --git a/mobile/apps/photos/ios/Podfile.lock b/mobile/apps/photos/ios/Podfile.lock
index f1299a4905..d74e766b18 100644
--- a/mobile/apps/photos/ios/Podfile.lock
+++ b/mobile/apps/photos/ios/Podfile.lock
@@ -478,89 +478,89 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/workmanager_apple/ios"
SPEC CHECKSUMS:
- app_links: f3e17e4ee5e357b39d8b95290a9b2c299fca71c6
- audio_session: 19e9480dbdd4e5f6c4543826b2e8b0e4ab6145fe
- battery_info: b6c551049266af31556b93c9d9b9452cfec0219f
- camera_avfoundation: adb0207d868b2d873e895371d88448399ab78d87
- connectivity_plus: 2a701ffec2c0ae28a48cf7540e279787e77c447d
- cupertino_http: 947a233f40cfea55167a49f2facc18434ea117ba
- dart_ui_isolate: d5bcda83ca4b04f129d70eb90110b7a567aece14
- device_info_plus: bf2e3232933866d73fe290f2942f2156cdd10342
- ente_photos_rust: 4655547b6bb6d7c1a2520025144841c08c8ac755
- ente_rust: c5b8d576e36fb8a9d053d4846cfd0c812b5d7afa
+ app_links: 76b66b60cc809390ca1ad69bfd66b998d2387ac7
+ audio_session: 9bb7f6c970f21241b19f5a3658097ae459681ba0
+ battery_info: 83f3aae7be2fccefab1d2bf06b8aa96f11c8bcdd
+ camera_avfoundation: be3be85408cd4126f250386828e9b1dfa40ab436
+ connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd
+ cupertino_http: 94ac07f5ff090b8effa6c5e2c47871d48ab7c86c
+ dart_ui_isolate: 46f6714abe6891313267153ef6f9748d8ecfcab1
+ device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe
+ ente_photos_rust: 79732f3ba67df7b0fb22089627afb80d692c2b2d
+ ente_rust: 9c976e3d083f0ce90f31693deb99629b28d8fe4c
ffmpeg_kit_custom: 682b4f2f1ff1f8abae5a92f6c3540f2441d5be99
- ffmpeg_kit_flutter: 9dce4803991478c78c6fb9f972703301101095fe
- file_saver: 503e386464dbe118f630e17b4c2e1190fa0cf808
+ ffmpeg_kit_flutter: 915b345acc97d4142e8a9a8549d177ff10f043f5
+ file_saver: 6cdbcddd690cb02b0c1a0c225b37cd805c2bf8b6
Firebase: d99ac19b909cd2c548339c2241ecd0d1599ab02e
- firebase_core: cf4d42a8ac915e51c0c2dc103442f3036d941a2d
- firebase_messaging: fee490327c1aae28a0da1e65fca856547deca493
+ firebase_core: ece862f94b2bc72ee0edbeec7ab5c7cb09fe1ab5
+ firebase_messaging: e1a5fae495603115be1d0183bc849da748734e2b
FirebaseCore: efb3893e5b94f32b86e331e3bd6dadf18b66568e
FirebaseCoreInternal: 9afa45b1159304c963da48addb78275ef701c6b4
FirebaseInstallations: 317270fec08a5d418fdbc8429282238cab3ac843
FirebaseMessaging: 3b26e2cee503815e01c3701236b020aa9b576f09
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
- flutter_email_sender: e03bdda7637bcd3539bfe718fddd980e9508efaa
- flutter_image_compress_common: ec1d45c362c9d30a3f6a0426c297f47c52007e3e
- flutter_inappwebview_ios: 6f63631e2c62a7c350263b13fa5427aedefe81d4
- flutter_local_notifications: ff50f8405aaa0ccdc7dcfb9022ca192e8ad9688f
- flutter_native_splash: df59bb2e1421aa0282cb2e95618af4dcb0c56c29
- flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
- flutter_sodium: a00383520fc689c688b66fd3092984174712493e
- flutter_timezone: ac3da59ac941ff1c98a2e1f0293420e020120282
- fluttertoast: 21eecd6935e7064cc1fcb733a4c5a428f3f24f0f
+ flutter_email_sender: aa1e9772696691d02cd91fea829856c11efb8e58
+ flutter_image_compress_common: 1697a328fd72bfb335507c6bca1a65fa5ad87df1
+ flutter_inappwebview_ios: b89ba3482b96fb25e00c967aae065701b66e9b99
+ flutter_local_notifications: a5a732f069baa862e728d839dd2ebb904737effb
+ flutter_native_splash: c32d145d68aeda5502d5f543ee38c192065986cf
+ flutter_secure_storage: 2c2ff13db9e0a5647389bff88b0ecac56e3f3418
+ flutter_sodium: 7e4621538491834eba53bd524547854bcbbd6987
+ flutter_timezone: 7c838e17ffd4645d261e87037e5bebf6d38fe544
+ fluttertoast: 2c67e14dce98bbdb200df9e1acf610d7a6264ea1
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
- home_widget: 0434835a4c9a75704264feff6be17ea40e0f0d57
- in_app_purchase_storekit: a1ce04056e23eecc666b086040239da7619cd783
- integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
- just_audio: a42c63806f16995daf5b219ae1d679deb76e6a79
- launcher_icon_switcher: 8e0ad2131a20c51c1dd939896ee32e70cd845b37
+ home_widget: f169fc41fd807b4d46ab6615dc44d62adbf9f64f
+ in_app_purchase_storekit: d1a48cb0f8b29dbf5f85f782f5dd79b21b90a5e6
+ integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
+ just_audio: 4e391f57b79cad2b0674030a00453ca5ce817eed
+ launcher_icon_switcher: 84c218d233505aa7d8655d8fa61a3ba802c022da
libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8
- local_auth_ios: 5046a18c018dd973247a0564496c8898dbb5adf9
+ local_auth_ios: f7a1841beef3151d140a967c2e46f30637cdf451
Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d
- maps_launcher: 2e5b6a2d664ec6c27f82ffa81b74228d770ab203
- media_extension: 6618f07abd762cdbfaadf1b0c56a287e820f0c84
- media_kit_libs_ios_video: a5fe24bc7875ccd6378a0978c13185e1344651c1
- media_kit_video: 5da63f157170e5bf303bf85453b7ef6971218a2e
- mobile_ocr: 2bba4e291977aa2d48a2464295df9cbba5693cfc
- motion_sensors: 03f55b7c637a7e365a0b5f9697a449f9059d5d91
- motionphoto: 8b65ce50c7d7ff3c767534fc3768b2eed9ac24e4
- move_to_background: cd3091014529ec7829e342ad2d75c0a11f4378a5
+ maps_launcher: edf829809ba9e894d70e569bab11c16352dedb45
+ media_extension: 671e2567880d96c95c65c9a82ccceed8f2e309fd
+ media_kit_libs_ios_video: 5a18affdb97d1f5d466dc79988b13eff6c5e2854
+ media_kit_video: 1746e198cb697d1ffb734b1d05ec429d1fcd1474
+ mobile_ocr: bb5125a6810b4eead3c69778e6b7f3c61fb3c24d
+ motion_sensors: 741e702c17467b9569a92165dda8d4d88c6167f1
+ motionphoto: 23e2aeb5c6380112f69468d71f970fa7438e5ed1
+ move_to_background: 7e3467dd2a1d1013e98c9c1cb93fd53cd7ef9d84
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
- native_video_editor: edcc94eaa32977d1c5e8cbb881fdd9390572a8a6
- native_video_player: 29ab24a926804ac8c4a57eb6d744c7d927c2bc3e
- objective_c: 77e887b5ba1827970907e10e832eec1683f3431d
- onnxruntime: e7c2ae44385191eaad5ae64c935a72debaddc997
+ native_video_editor: bb979c7b6feb7013006099c8abaf0055c116aaa0
+ native_video_player: 6809dec117e8997161dbfb42a6f90d6df71a504d
+ objective_c: 89e720c30d716b036faf9c9684022048eee1eee2
+ onnxruntime: f9b296392c96c42882be020a59dbeac6310d81b2
onnxruntime-c: a909204639a1f035f575127ac406f781ac797c9c
onnxruntime-objc: b6fab0f1787aa6f7190c2013f03037df4718bd8b
- open_mail_app: 70273c53f768beefdafbe310c3d9086e4da3cb02
+ open_mail_app: 7314a609e88eed22d53671279e189af7a0ab0f11
OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94
- package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
- path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
- permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
- photo_manager: 81954a1bf804b6e882d0453b3b6bc7fad7b47d3d
- privacy_screen: 1a131c052ceb3c3659934b003b0d397c2381a24e
+ package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
+ path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
+ permission_handler_apple: 4ed2196e43d0651e8ff7ca3483a069d469701f2d
+ photo_manager: 1d80ae07a89a67dfbcae95953a1e5a24af7c3e62
+ privacy_screen: 3159a541f5d3a31bea916cfd4e58f9dc722b3fd4
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
- receive_sharing_intent: 79c848f5b045674ad60b9fea3bafea59962ad2c1
- rive_native: b9a36ed0644fc2ed1fd46f1d2b4e5501e5948235
+ receive_sharing_intent: 222384f00ffe7e952bbfabaa9e3967cb87e5fe00
+ rive_native: a57df296c558867395bfe82fafe857ec67640f58
SDWebImage: e9c98383c7572d713c1a0d7dd2783b10599b9838
SDWebImageWebPCoder: 0e06e365080397465cc73a7a9b472d8a3bd0f377
Sentry: da60d980b197a46db0b35ea12cb8f39af48d8854
- sentry_flutter: 2df8b0aab7e4aba81261c230cbea31c82a62dd1b
- share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f
- shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
- sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702d
+ sentry_flutter: 27892878729f42701297c628eb90e7c6529f3684
+ share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a
+ shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
+ sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
sqlite3: 73513155ec6979715d3904ef53a8d68892d4032b
- sqlite3_flutter_libs: 2c48c4ee7217fd653251975e43412250d5bcbbe2
- system_info_plus: 5393c8da281d899950d751713575fbf91c7709aa
- thermal: a9261044101ae8f532fa29cab4e8270b51b3f55c
- ua_client_hints: aeabd123262c087f0ce151ef96fa3ab77bfc8b38
- url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
- video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3
- video_thumbnail: c4e2a3c539e247d4de13cd545344fd2d26ffafd1
- volume_controller: 2e3de73d6e7e81a0067310d17fb70f2f86d71ac7
- wakelock_plus: 76957ab028e12bfa4e66813c99e46637f367fc7e
- workmanager_apple: 7bac258335c310689a641e2d66e88d4845d372e9
+ sqlite3_flutter_libs: e7fc8c9ea2200ff3271f08f127842131746b70e2
+ system_info_plus: 555ce7047fbbf29154726db942ae785c29211740
+ thermal: d4c48be750d1ddbab36b0e2dcb2471531bc8df41
+ ua_client_hints: 92fe0d139619b73ec9fcb46cc7e079a26178f586
+ url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
+ video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b
+ video_thumbnail: b637e0ad5f588ca9945f6e2c927f73a69a661140
+ volume_controller: 3657a1f65bedb98fa41ff7dc5793537919f31b12
+ wakelock_plus: e29112ab3ef0b318e58cfa5c32326458be66b556
+ workmanager_apple: 904529ae31e97fc5be632cf628507652294a0778
PODFILE CHECKSUM: 6f3b6e9f5563e19924497858e8dfff2c494408f7
diff --git a/mobile/apps/photos/lib/ui/social/comment_likes_bottom_sheet.dart b/mobile/apps/photos/lib/ui/social/comment_likes_bottom_sheet.dart
index eb68e40174..d4094e22e6 100644
--- a/mobile/apps/photos/lib/ui/social/comment_likes_bottom_sheet.dart
+++ b/mobile/apps/photos/lib/ui/social/comment_likes_bottom_sheet.dart
@@ -1,3 +1,4 @@
+import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:photos/extensions/user_extension.dart";
import "package:photos/models/api/collection/user.dart";
@@ -211,7 +212,7 @@ class _CommentLikeListItem extends StatelessWidget {
),
),
const Icon(
- Icons.favorite,
+ EnteIcons.likeFilled,
color: Color(0xFF08C225),
size: 20,
),
diff --git a/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart b/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
index 87b54731b4..78d2274f67 100644
--- a/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
+++ b/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
@@ -1,3 +1,4 @@
+import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:logging/logging.dart";
import "package:photos/core/constants.dart";
@@ -380,7 +381,7 @@ class _AlbumsHeader extends StatelessWidget {
Text("Like all", style: textTheme.small),
const SizedBox(width: 10),
Icon(
- allLiked ? Icons.favorite : Icons.favorite_border,
+ allLiked ? EnteIcons.likeFilled : EnteIcons.likeStroke,
color: allLiked ? _greenHeartColor : colorScheme.textBase,
size: 16,
),
@@ -505,7 +506,7 @@ class _AlbumListItem extends StatelessWidget {
),
child: Center(
child: Icon(
- state.isLiked ? Icons.favorite : Icons.favorite_border,
+ state.isLiked ? EnteIcons.likeFilled : EnteIcons.likeStroke,
color: _greenHeartColor,
size: 19.2,
),
diff --git a/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart b/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart
index 823f052410..ec747dbe7b 100644
--- a/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart
+++ b/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart
@@ -1,5 +1,6 @@
import "dart:async";
+import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:photos/core/configuration.dart";
import "package:photos/db/files_db.dart";
@@ -435,7 +436,7 @@ class _LikeListItem extends StatelessWidget {
),
),
const Icon(
- Icons.favorite,
+ EnteIcons.likeFilled,
color: Color(0xFF08C225),
size: 20,
),
diff --git a/mobile/apps/photos/lib/ui/social/widgets/comment_actions_popup.dart b/mobile/apps/photos/lib/ui/social/widgets/comment_actions_popup.dart
index d4d6f0d52e..1f4cc9b97a 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/comment_actions_popup.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/comment_actions_popup.dart
@@ -1,3 +1,4 @@
+import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:photos/theme/ente_theme.dart";
@@ -37,7 +38,7 @@ class CommentActionsPopup extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
_ActionItem(
- icon: isLiked ? Icons.favorite : Icons.favorite_border,
+ icon: isLiked ? EnteIcons.likeFilled : EnteIcons.likeStroke,
iconColor: isLiked ? const Color(0xFFE25454) : null,
label: "Like",
onTap: onLikeTap,
@@ -48,7 +49,7 @@ class CommentActionsPopup extends StatelessWidget {
defaultIconColor: colorScheme.textBase,
),
_ActionItem(
- icon: Icons.reply,
+ icon: EnteIcons.reply,
label: "Reply",
onTap: onReplyTap,
textStyle: textTheme.mini.copyWith(
diff --git a/mobile/apps/photos/lib/ui/social/widgets/comment_bubble_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/comment_bubble_widget.dart
index bbf21f44ec..7df03ce8ce 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/comment_bubble_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/comment_bubble_widget.dart
@@ -1,5 +1,6 @@
import "dart:async";
+import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:flutter/services.dart";
import "package:logging/logging.dart";
@@ -299,7 +300,10 @@ class _CommentBubbleWidgetState extends State<CommentBubbleWidget>
await _hideHighlight();
if (!mounted) return;
- final confirmed = await showDeleteCommentConfirmationDialog(context);
+ final confirmed = await showDeleteCommentConfirmationDialog(
+ context,
+ commentText: widget.comment.data,
+ );
if (confirmed == true) {
try {
@@ -363,7 +367,7 @@ class _CommentBubbleWidgetState extends State<CommentBubbleWidget>
opacity:
(_dragOffset / _replyThreshold).clamp(0.0, 1.0),
child: Icon(
- Icons.reply,
+ EnteIcons.reply,
color: colorScheme.textMuted,
size: 24,
),
diff --git a/mobile/apps/photos/lib/ui/social/widgets/comment_input_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/comment_input_widget.dart
index 4bf4e55be7..121b1907bc 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/comment_input_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/comment_input_widget.dart
@@ -1,3 +1,4 @@
+import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:flutter/services.dart";
import "package:photos/models/api/collection/user.dart";
@@ -197,7 +198,7 @@ class _CommentInputWidgetState extends State<CommentInputWidget>
key: const ValueKey('send'),
onPressed: widget.onSend,
icon: Icon(
- Icons.send_rounded,
+ EnteIcons.sendStroke,
color: colorScheme.textBase.withValues(alpha: 0.8),
size: 24,
),
diff --git a/mobile/apps/photos/lib/ui/social/widgets/comment_like_count_capsule.dart b/mobile/apps/photos/lib/ui/social/widgets/comment_like_count_capsule.dart
index e37cc74bd2..380f223f91 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/comment_like_count_capsule.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/comment_like_count_capsule.dart
@@ -1,3 +1,4 @@
+import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:photos/theme/ente_theme.dart";
@@ -38,7 +39,7 @@ class CommentLikeCountCapsule extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
const Icon(
- Icons.favorite,
+ EnteIcons.likeFilled,
size: 14,
color: Color(0xFF08C225),
),
diff --git a/mobile/apps/photos/lib/ui/social/widgets/delete_comment_confirmation_dialog.dart b/mobile/apps/photos/lib/ui/social/widgets/delete_comment_confirmation_dialog.dart
index 03e7b45ce1..c3abd74c62 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/delete_comment_confirmation_dialog.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/delete_comment_confirmation_dialog.dart
@@ -1,30 +1,49 @@
import "package:flutter/material.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/common/gradient_button.dart";
+import "package:photos/ui/components/buttons/icon_button_widget.dart";
/// Shows a bottom sheet confirmation dialog for deleting a comment.
/// Returns true if confirmed, null if cancelled.
-Future<bool?> showDeleteCommentConfirmationDialog(BuildContext context) {
+Future<bool?> showDeleteCommentConfirmationDialog(
+ BuildContext context, {
+ required String commentText,
+}) {
return showModalBottomSheet<bool>(
context: context,
isScrollControlled: true,
isDismissible: true,
- builder: (context) => const _DeleteCommentConfirmationSheet(),
+ backgroundColor: Colors.transparent,
+ builder: (context) => _DeleteCommentConfirmationSheet(
+ commentText: commentText,
+ ),
);
}
class _DeleteCommentConfirmationSheet extends StatelessWidget {
- const _DeleteCommentConfirmationSheet();
+ final String commentText;
+
+ const _DeleteCommentConfirmationSheet({
+ required this.commentText,
+ });
+
+ String _truncateComment(String text, int maxLength) {
+ if (text.length <= maxLength) return text;
+ return "${text.substring(0, maxLength)}....";
+ }
@override
Widget build(BuildContext context) {
final textTheme = getEnteTextTheme(context);
final colorScheme = getEnteColorScheme(context);
+ final isDarkMode = Theme.of(context).brightness == Brightness.dark;
+ final truncatedComment = _truncateComment(commentText, 30);
return Container(
decoration: BoxDecoration(
- color: colorScheme.backdropBase,
- border: Border(top: BorderSide(color: colorScheme.strokeFaint)),
+ color: isDarkMode
+ ? const Color(0xFF0E0E0E)
+ : colorScheme.backgroundElevated,
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(24),
topRight: Radius.circular(24),
@@ -36,36 +55,36 @@ class _DeleteCommentConfirmationSheet extends StatelessWidget {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
- const SizedBox(height: 8),
- Row(
- mainAxisAlignment: MainAxisAlignment.end,
+ Stack(
children: [
- GestureDetector(
- onTap: () => Navigator.of(context).pop(),
- child: Container(
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(50),
- color: colorScheme.backgroundElevated,
- ),
- padding: const EdgeInsets.all(8),
- child: Icon(
- Icons.close,
- size: 24,
- color: colorScheme.textBase,
+ Padding(
+ padding: const EdgeInsets.only(top: 8),
+ child: Center(
+ child: Image.asset(
+ "assets/ducky_garbage_bin_opened.png",
+ height: 180,
),
),
),
+ Positioned(
+ top: 8,
+ right: 0,
+ child: IconButtonWidget(
+ iconButtonType: IconButtonType.rounded,
+ icon: Icons.close_rounded,
+ onTap: () => Navigator.of(context).pop(),
+ ),
+ ),
],
),
- const SizedBox(height: 16),
Text(
- "Delete comment?",
+ "Are you sure?",
style: textTheme.h3Bold,
textAlign: TextAlign.center,
),
const SizedBox(height: 12),
Text(
- "This comment will be permanently deleted.",
+ 'Your comment "$truncatedComment" will be deleted permanently',
style: textTheme.body.copyWith(color: colorScheme.textMuted),
textAlign: TextAlign.center,
),
@@ -74,10 +93,10 @@ class _DeleteCommentConfirmationSheet extends StatelessWidget {
width: double.infinity,
child: GradientButton(
onTap: () => Navigator.of(context).pop(true),
- text: "Delete",
- linearGradientColors: [
- colorScheme.warning400,
- colorScheme.warning400,
+ text: "Delete comment",
+ linearGradientColors: const [
+ Color(0xFFF63A3A),
+ Color(0xFFF63A3A),
],
),
),
diff --git a/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
index 47776abc3e..2e13bc64e1 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
@@ -1,3 +1,4 @@
+import "package:ente_icons/ente_icons.dart";
import "package:flutter/material.dart";
import "package:photos/db/files_db.dart";
import "package:photos/extensions/user_extension.dart";
@@ -174,19 +175,19 @@ class _FeedTypeIconWithTimeline extends StatelessWidget {
switch (type) {
case FeedItemType.photoLike:
return const Icon(
- Icons.favorite,
+ EnteIcons.likeFilled,
size: 18,
color: Color(0xFF00B33C),
);
case FeedItemType.comment:
return Icon(
- Icons.chat_bubble_outline,
+ EnteIcons.commentBubbleStroke,
size: 18,
color: getEnteColorScheme(context).textMuted,
);
case FeedItemType.reply:
return Icon(
- Icons.reply,
+ EnteIcons.reply,
size: 18,
color: getEnteColorScheme(context).textMuted,
);
@@ -195,7 +196,7 @@ class _FeedTypeIconWithTimeline extends StatelessWidget {
clipBehavior: Clip.none,
children: [
Icon(
- Icons.chat_bubble_outline,
+ EnteIcons.commentBubbleStroke,
size: 18,
color: getEnteColorScheme(context).textMuted,
),
@@ -203,7 +204,7 @@ class _FeedTypeIconWithTimeline extends StatelessWidget {
right: -4,
bottom: -4,
child: Icon(
- Icons.favorite,
+ EnteIcons.likeFilled,
size: 10,
color: Color(0xFF00B33C),
),
@@ -215,7 +216,7 @@ class _FeedTypeIconWithTimeline extends StatelessWidget {
clipBehavior: Clip.none,
children: [
Icon(
- Icons.reply,
+ EnteIcons.reply,
size: 18,
color: getEnteColorScheme(context).textMuted,
),
@@ -223,7 +224,7 @@ class _FeedTypeIconWithTimeline extends StatelessWidget {
right: -4,
bottom: -4,
child: Icon(
- Icons.favorite,
+ EnteIcons.likeFilled,
size: 10,
color: Color(0xFF00B33C),
),
diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart
index f8553bc33a..40e13eb18c 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart
@@ -5,7 +5,6 @@ import "package:collection/collection.dart";
import "package:ente_icons/ente_icons.dart";
import "package:flutter/cupertino.dart";
import "package:flutter/material.dart";
-import "package:hugeicons/hugeicons.dart";
import "package:logging/logging.dart";
import "package:photos/core/event_bus.dart";
import "package:photos/db/files_db.dart";
@@ -390,13 +389,7 @@ class FileBottomBarState extends State<FileBottomBar> {
),
onPressed: _toggleReaction,
icon: Icon(
- _hasLiked
- ? (Platform.isAndroid
- ? Icons.favorite
- : Icons.favorite_rounded)
- : (Platform.isAndroid
- ? Icons.favorite_border
- : Icons.favorite_border_rounded),
+ _hasLiked ? EnteIcons.likeFilled : EnteIcons.likeStroke,
color: _hasLiked ? const Color(0xFF08C225) : Colors.white,
),
),
@@ -564,8 +557,8 @@ class FileBottomBarState extends State<FileBottomBar> {
icon: Stack(
clipBehavior: Clip.none,
children: [
- const HugeIcon(
- icon: HugeIcons.strokeRoundedBubbleChat,
+ const Icon(
+ EnteIcons.commentBubbleStroke,
color: Colors.white,
),
if (_commentCount > 0)
diff --git a/mobile/packages/ente_icons/config.json b/mobile/packages/ente_icons/config.json
index 6b4cd7e5c7..ea818733a8 100644
--- a/mobile/packages/ente_icons/config.json
+++ b/mobile/packages/ente_icons/config.json
@@ -61,6 +61,76 @@
"search": [
"favorite_stroke"
]
+ },
+ {
+ "uid": "36519d6d85563c23f5c2b8b38ee57af9",
+ "css": "like_stroke",
+ "code": 59396,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M828.1 378.5C828.1 292.8 766.3 227.1 683.8 227.1 641.4 227.1 595.8 239.7 528 307.5 512.5 322.9 487.5 322.9 472 307.5 404.2 239.7 358.7 227.1 316.2 227.1 233.7 227.1 172 292.8 172 378.5 172 443.1 214.7 517.8 278 590.5 339.7 661.5 414.6 723.4 465.3 761.3 486.1 776.9 513.9 776.9 534.8 761.3 585.4 723.4 660.3 661.6 722.1 590.5 785.3 517.8 828.1 443.1 828.1 378.5ZM907.2 378.5C907.2 473.5 847.3 567.2 781.8 642.5 714.9 719.4 635.2 785 582.2 824.7 533.2 861.3 466.8 861.3 417.9 824.7 364.9 785 285.1 719.4 218.2 642.5 152.8 567.2 92.8 473.5 92.8 378.5 92.8 253.3 185.8 147.9 316.2 147.9 375.9 148 433.1 166.7 500 225.2 566.9 166.7 624.2 147.9 683.8 147.9 814.2 148 907.2 253.3 907.2 378.5Z",
+ "width": 1000
+ },
+ "search": [
+ "like_stroke"
+ ]
+ },
+ {
+ "uid": "9392d386fb35ebeedce0f6d13fa0aaee",
+ "css": "comment_bubble_stroke",
+ "code": 59392,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M357.3 155.5C425.5 127.3 500.5 119.9 572.8 134.3 645.1 148.7 711.6 184.2 763.7 236.4 815.9 288.5 851.4 354.9 865.8 427.3 880.2 499.6 872.8 574.6 844.6 642.7 816.3 710.9 768.6 769.1 707.2 810.1 645.9 851.1 573.8 873 500 873 443.6 873 390 860.4 341.9 837.8L174.7 872.1C161.6 874.8 148.1 870.8 138.7 861.4 129.3 852 125.3 838.4 127.9 825.4L162.3 658.1C139.7 610.1 127.1 556.5 127.1 500 127.1 426.3 149 354.2 190 292.8 231 231.5 289.2 183.7 357.3 155.5ZM206.3 500C206.3 548.7 218 594.4 238.9 634.7 243.1 642.7 244.3 652 242.5 660.8L217.5 782.5 339.2 757.6 345.9 756.8C352.7 756.5 359.4 758.1 365.4 761.2 405.7 782 451.4 793.8 500 793.8 558.1 793.8 614.9 776.6 663.2 744.3 711.6 712 749.2 666.1 771.4 612.5 793.7 558.8 799.5 499.7 788.1 442.7 776.8 385.8 748.8 333.4 707.8 292.3 666.7 251.2 614.3 223.3 557.3 212 500.4 200.6 441.3 206.4 387.6 228.6 333.9 250.9 288.1 288.5 255.8 336.8 223.5 385.1 206.3 441.9 206.3 500Z",
+ "width": 1000
+ },
+ "search": [
+ "comment_bubble_stroke"
+ ]
+ },
+ {
+ "uid": "a6e3ec0a038d9ecea4859a7b17967ad4",
+ "css": "like_filled",
+ "code": 59393,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M433.7 833.9C316.2 746 83.3 545 83.3 364.2 83.3 244.6 171 147.7 291.6 147.7 354.1 147.7 416.6 168.6 499.9 251.9 583.3 168.6 645.8 147.7 708.3 147.7 828.9 147.7 916.6 244.6 916.6 364.2 916.6 545 683.7 746 566.2 833.9 526.6 863.5 473.3 863.5 433.7 833.9Z",
+ "width": 1000
+ },
+ "search": [
+ "like_filled"
+ ]
+ },
+ {
+ "uid": "9469665b7faa4f27bdbdd75ea725dcb5",
+ "css": "send_stroke",
+ "code": 59395,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M160.2 125.2C179.4 124 199.8 128 219.7 133.8 259.3 145.4 311.7 168.6 376.2 196.9L737 355.8C787.3 378 829.4 396.4 858.4 414.5 886.4 432 916.7 457.9 916.7 500 916.7 542.1 886.4 568.1 858.4 585.5 829.4 603.6 787.3 622 737 644.2L376.2 803.1C311.7 831.5 259.3 854.6 219.7 866.2 199.8 872 179.4 876 160.2 874.8 142.1 873.7 124.2 867.8 109.5 854.5L103.3 848.4C71.2 812.3 84.2 765.4 98.3 730.7 113.9 692.3 142.3 642.4 177.3 580.9L202.2 536.8 212.3 518.9C214.9 514.1 216.8 510.4 218.3 507 219.6 504.1 220.2 502.3 220.5 501.3 220.7 500.5 220.7 500.1 220.7 500 220.7 499.9 220.7 499.6 220.5 498.7 220.2 497.7 219.6 495.9 218.3 493 215.4 486.3 210.6 477.8 202.2 463.1L177.3 419.2 177.2 419.1C142.3 357.5 113.9 307.6 98.3 269.3 90.4 250 84.3 230.2 83.5 210.9 82.5 190.3 87.7 169.2 103.3 151.6L109.5 145.5C124.2 132.3 142.1 126.3 160.2 125.2ZM304 500C304 515.5 299.8 528.9 294.4 540.9 289.5 552.2 282.3 564.7 274.7 578L274.7 578 249.7 622 249.7 622C213.5 685.9 188.5 730 175.5 762.1 168.9 778.3 167.2 787.2 166.8 791.6 172.1 791.7 181.4 790.5 196.4 786.1 229.4 776.5 275.7 756.3 342.6 726.8L703.4 567.9C756.3 544.6 791.6 528.9 814.3 514.8 826.5 507.2 831.2 502.3 832.8 500 831.2 497.7 826.5 492.8 814.3 485.2 791.6 471.1 756.3 455.4 703.4 432.1L342.6 273.2C275.7 243.7 229.4 223.5 196.4 213.9 181.4 209.5 172.2 208.3 166.8 208.4 167.3 213.8 169.4 223.1 175.5 237.9 188.5 270 213.5 314.1 249.7 378L274.7 422C282.3 435.3 289.5 447.9 294.4 459.1 299.8 471.1 304 484.5 304 500Z",
+ "width": 1000
+ },
+ "search": [
+ "send_stroke"
+ ]
+ },
+ {
+ "uid": "edb5fcf33b096715106c82a3e2e1be71",
+ "css": "reply",
+ "code": 59400,
+ "src": "custom_icons",
+ "selected": true,
+ "svg": {
+ "path": "M399.8 190.6C406.9 198 410.9 207.9 410.9 218.2 410.9 228.6 406.9 238.5 399.8 245.8L210.4 439.6H627.3C675.9 439.6 747.8 454.2 808.7 499.1 871.6 545.4 920.1 622.3 920.1 739.2 920.1 749.5 916.1 759.5 908.9 766.8 901.7 774.1 892 778.2 881.9 778.2 871.8 778.2 862.1 774.1 854.9 766.8 847.7 759.5 843.7 749.5 843.7 739.2 843.7 647.7 807.3 594.3 764.1 562.5 719 529.2 663.6 517.8 627.3 517.8H210.4L399.8 711.5C403.5 715.1 406.5 719.4 408.6 724.2 410.7 729 411.8 734.2 411.9 739.4 412 744.7 411.1 749.9 409.1 754.8 407.2 759.6 404.4 764 400.7 767.8 397.1 771.5 392.8 774.4 388 776.4 383.3 778.3 378.2 779.3 373.1 779.2 367.9 779.1 362.9 778 358.2 775.8 353.5 773.7 349.3 770.6 345.8 766.8L91.2 506.3C84.1 499 80.1 489 80.1 478.7 80.1 468.3 84.1 458.4 91.2 451.1L345.8 190.6C353 183.3 362.7 179.2 372.8 179.2 382.9 179.2 392.6 183.3 399.8 190.6Z",
+ "width": 1000
+ },
+ "search": [
+ "reply"
+ ]
}
]
}
\ No newline at end of file
diff --git a/mobile/packages/ente_icons/fonts/EnteIcons.ttf b/mobile/packages/ente_icons/fonts/EnteIcons.ttf
index b23de3c4db..e1189f014a 100644
Binary files a/mobile/packages/ente_icons/fonts/EnteIcons.ttf and b/mobile/packages/ente_icons/fonts/EnteIcons.ttf differ
diff --git a/mobile/packages/ente_icons/lib/src/ente_icons.dart b/mobile/packages/ente_icons/lib/src/ente_icons.dart
index 7fdf824715..5b2891cc01 100644
--- a/mobile/packages/ente_icons/lib/src/ente_icons.dart
+++ b/mobile/packages/ente_icons/lib/src/ente_icons.dart
@@ -6,13 +6,33 @@ class EnteIcons {
static const _kFontFam = 'EnteIcons';
static const String _kFontPkg = 'ente_icons';
- static const IconData addToAlbum = IconData(
- 0xe805,
+ static const IconData commentBubbleStroke = IconData(
+ 0xe800,
fontFamily: _kFontFam,
fontPackage: _kFontPkg,
);
- static const IconData favoriteStroke = IconData(
- 0xe807,
+ static const IconData likeFilled = IconData(
+ 0xe801,
+ fontFamily: _kFontFam,
+ fontPackage: _kFontPkg,
+ );
+ static const IconData lightningFilled = IconData(
+ 0xe802,
+ fontFamily: _kFontFam,
+ fontPackage: _kFontPkg,
+ );
+ static const IconData sendStroke = IconData(
+ 0xe803,
+ fontFamily: _kFontFam,
+ fontPackage: _kFontPkg,
+ );
+ static const IconData likeStroke = IconData(
+ 0xe804,
+ fontFamily: _kFontFam,
+ fontPackage: _kFontPkg,
+ );
+ static const IconData addToAlbum = IconData(
+ 0xe805,
fontFamily: _kFontFam,
fontPackage: _kFontPkg,
);
@@ -21,8 +41,13 @@ class EnteIcons {
fontFamily: _kFontFam,
fontPackage: _kFontPkg,
);
- static const IconData lightningFilled = IconData(
- 0xe802,
+ static const IconData favoriteStroke = IconData(
+ 0xe807,
+ fontFamily: _kFontFam,
+ fontPackage: _kFontPkg,
+ );
+ static const IconData reply = IconData(
+ 0xe808,
fontFamily: _kFontFam,
fontPackage: _kFontPkg,
);