Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add 'noLinksYet' localization string and update AvatarType to include 'regular'

AmanRajSinghMourya66741e8e7f0c
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index 141082129f..8eb5355ad3 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -1667,6 +1667,7 @@
"mapsPrivacyNotice": "Approximate coordinates will be sent to privacy conscious third parties like OpenStreetMap to show the map and location.",
"enableMaps": "Enable Maps",
"links": "Links",
+ "noLinksYet": "No links yet",
"quickLinks": "Quick links",
"selectItemsToAdd": "Select items to add",
"addSelected": "Add selected",
diff --git a/mobile/apps/photos/lib/ui/sharing/album_share_info_widget.dart b/mobile/apps/photos/lib/ui/sharing/album_share_info_widget.dart
index 8bdadf0213..2cb9e65175 100644
--- a/mobile/apps/photos/lib/ui/sharing/album_share_info_widget.dart
+++ b/mobile/apps/photos/lib/ui/sharing/album_share_info_widget.dart
@@ -81,6 +81,8 @@ double getOverlapPadding(AvatarType type) {
return 12.0;
case AvatarType.medium:
return 18.0;
+ case AvatarType.regular:
+ return 24.0;
case AvatarType.large:
return 24.0;
case AvatarType.huge:
@@ -94,6 +96,8 @@ MoreCountType moreCountTypeFromAvatarType(AvatarType type) {
return MoreCountType.small;
case AvatarType.medium:
return MoreCountType.medium;
+ case AvatarType.regular:
+ return MoreCountType.regular;
case AvatarType.large:
return MoreCountType.large;
case AvatarType.huge:
diff --git a/mobile/apps/photos/lib/ui/sharing/more_count_badge.dart b/mobile/apps/photos/lib/ui/sharing/more_count_badge.dart
index 00be717aac..6d4f07ef31 100644
--- a/mobile/apps/photos/lib/ui/sharing/more_count_badge.dart
+++ b/mobile/apps/photos/lib/ui/sharing/more_count_badge.dart
@@ -3,7 +3,7 @@ import 'package:photos/theme/colors.dart';
import 'package:photos/theme/ente_theme.dart';
import 'package:tuple/tuple.dart';
-enum MoreCountType { small, medium, large, huge }
+enum MoreCountType { small, medium, regular, large, huge }
class MoreCountWidget extends StatelessWidget {
final MoreCountType type;
@@ -70,6 +70,8 @@ class MoreCountWidget extends StatelessWidget {
return Tuple2(56.0, enteTextTheme.largeBold);
case MoreCountType.large:
return Tuple2(32.0, enteTextTheme.mini);
+ case MoreCountType.regular:
+ return Tuple2(28.0, enteTextTheme.mini);
case MoreCountType.medium:
return Tuple2(24.0, enteTextTheme.mini);
case MoreCountType.small:
diff --git a/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart b/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart
index e35f287b4f..fe8e0bfb46 100644
--- a/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart
+++ b/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart
@@ -15,7 +15,7 @@ import 'package:photos/theme/ente_theme.dart';
import "package:photos/ui/viewer/people/person_face_widget.dart";
import 'package:tuple/tuple.dart';
-enum AvatarType { small, medium, large, huge }
+enum AvatarType { small, medium, regular, large, huge }
class UserAvatarWidget extends StatefulWidget {
final User user;
@@ -248,6 +248,8 @@ class _FirstLetterCircularAvatarState
return Tuple2(56.0, enteTextTheme.largeBold);
case AvatarType.large:
return Tuple2(32.0, enteTextTheme.mini);
+ case AvatarType.regular:
+ return Tuple2(28.0, enteTextTheme.mini);
case AvatarType.medium:
return Tuple2(24.0, enteTextTheme.mini);
case AvatarType.small:
@@ -264,6 +266,8 @@ double getAvatarSize(
return 56.0;
case AvatarType.large:
return 32.0;
+ case AvatarType.regular:
+ return 28.0;
case AvatarType.medium:
return 24.0;
case AvatarType.small:
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 9c6298ab7d..65ae7a72a8 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
@@ -210,7 +210,7 @@ class _CommentLikeListItem extends StatelessWidget {
UserAvatarWidget(
user,
currentUserID: currentUserID,
- type: AvatarType.large,
+ type: AvatarType.regular,
addStroke: false,
),
const SizedBox(width: 12),
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 6f459d3786..e1ac54a62c 100644
--- a/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart
+++ b/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart
@@ -443,7 +443,7 @@ class _LikeListItem extends StatelessWidget {
UserAvatarWidget(
user,
currentUserID: currentUserID,
- type: AvatarType.large,
+ type: AvatarType.regular,
addStroke: false,
),
const SizedBox(width: 12),
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 14c9141e0e..9c2b9a40a9 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
@@ -897,7 +897,7 @@ class _Header extends StatelessWidget {
UserAvatarWidget(
user,
currentUserID: currentUserID,
- type: AvatarType.large,
+ type: AvatarType.regular,
thumbnailView: true,
addStroke: false,
),
@@ -909,7 +909,7 @@ class _Header extends StatelessWidget {
UserAvatarWidget(
user,
currentUserID: currentUserID,
- type: AvatarType.large,
+ type: AvatarType.regular,
thumbnailView: true,
addStroke: false,
),
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 98c94ae037..0ceff5990e 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
@@ -406,7 +406,7 @@ class _StackedAvatars extends StatelessWidget {
),
child: UserAvatarWidget(
actors.first,
- type: AvatarType.large,
+ type: AvatarType.regular,
currentUserID: currentUserID,
addStroke: false,
),
@@ -425,7 +425,7 @@ class _StackedAvatars extends StatelessWidget {
),
child: UserAvatarWidget(
actors[1],
- type: AvatarType.large,
+ type: AvatarType.regular,
currentUserID: currentUserID,
addStroke: false,
),
@@ -449,7 +449,7 @@ class _StackedAvatars extends StatelessWidget {
),
child: UserAvatarWidget(
user,
- type: AvatarType.large,
+ type: AvatarType.regular,
currentUserID: currentUserID,
addStroke: false,
),
diff --git a/mobile/apps/photos/lib/ui/tabs/shared/all_links_page.dart b/mobile/apps/photos/lib/ui/tabs/shared/all_links_page.dart
index 5cc0e8dbaf..6769e94898 100644
--- a/mobile/apps/photos/lib/ui/tabs/shared/all_links_page.dart
+++ b/mobile/apps/photos/lib/ui/tabs/shared/all_links_page.dart
@@ -272,7 +272,7 @@ class _AllLinksPageState extends State<AllLinksPage> {
child: Padding(
padding: const EdgeInsets.all(32),
child: Text(
- "No links yet",
+ AppLocalizations.of(context).noLinksYet,
style: textTheme.bodyMuted,
textAlign: TextAlign.center,
),