Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add select album asset overlay to like collection selector

ashilkn3c39abb7d007
diff --git a/mobile/apps/photos/assets/2.0x/select_album_to_like_asset.png b/mobile/apps/photos/assets/2.0x/select_album_to_like_asset.png
new file mode 100644
index 0000000000..3f8549971e
Binary files /dev/null and b/mobile/apps/photos/assets/2.0x/select_album_to_like_asset.png differ
diff --git a/mobile/apps/photos/assets/3.0x/select_album_to_like_asset.png b/mobile/apps/photos/assets/3.0x/select_album_to_like_asset.png
new file mode 100644
index 0000000000..c7ab0079f5
Binary files /dev/null and b/mobile/apps/photos/assets/3.0x/select_album_to_like_asset.png differ
diff --git a/mobile/apps/photos/assets/select_album_to_like_asset.png b/mobile/apps/photos/assets/select_album_to_like_asset.png
new file mode 100644
index 0000000000..2d36f425f9
Binary files /dev/null and b/mobile/apps/photos/assets/select_album_to_like_asset.png differ
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 78d2274f67..08c397e1af 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
@@ -236,9 +236,8 @@ class _LikeCollectionSelectorSheetState
maxHeight: mediaQuery.size.height * _maxHeightFraction,
),
decoration: BoxDecoration(
- color: isDarkMode
- ? const Color(0xFF0E0E0E)
- : colorScheme.backgroundBase,
+ color:
+ isDarkMode ? const Color(0xFF0E0E0E) : colorScheme.backgroundBase,
borderRadius: const BorderRadius.vertical(
top: Radius.circular(28),
),
@@ -438,19 +437,31 @@ class _FileThumbnail extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
- child: SizedBox(
- width: 128,
- height: 128,
- child: ClipRRect(
- borderRadius: BorderRadius.circular(20),
- child: file != null
- ? ThumbnailWidget(
- file!,
- thumbnailSize: thumbnailLargeSize,
- rawThumbnail: true,
- )
- : Container(color: placeholderColor),
- ),
+ child: Stack(
+ children: [
+ Padding(
+ padding: const EdgeInsets.only(top: 13, left: 13, right: 13),
+ child: SizedBox(
+ width: 128,
+ height: 128,
+ child: ClipRRect(
+ borderRadius: BorderRadius.circular(20),
+ child: file != null
+ ? ThumbnailWidget(
+ file!,
+ thumbnailSize: thumbnailLargeSize,
+ rawThumbnail: true,
+ )
+ : Container(color: placeholderColor),
+ ),
+ ),
+ ),
+ Positioned(
+ top: 0,
+ right: 0,
+ child: Image.asset("assets/select_album_to_like_asset.png"),
+ ),
+ ],
),
);
}