Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] desaturate style for seen memory lane cards in memories strip

Priyanshu Dangare309f5bc6fe2e
diff --git a/.gitignore b/.gitignore
index 7c850ab2f9..8f61d7541e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,6 @@
CLAUDE.local.md
node_modules/
+
+# FVM Version Cache
+.fvm/
\ No newline at end of file
diff --git a/mobile/apps/photos/android/gradle.properties b/mobile/apps/photos/android/gradle.properties
index 0b6d9d29bc..e0c548e6ac 100644
--- a/mobile/apps/photos/android/gradle.properties
+++ b/mobile/apps/photos/android/gradle.properties
@@ -4,4 +4,8 @@ org.gradle.caching=true
org.gradle.daemon=true
android.useAndroidX=true
android.enableJetifier=true
-android.bundle.enableUncompressedNativeLibs=true
\ No newline at end of file
+android.bundle.enableUncompressedNativeLibs=true
+# This builtInKotlin flag was added automatically by Flutter migrator
+android.builtInKotlin=false
+# This newDsl flag was added automatically by Flutter migrator
+android.newDsl=false
diff --git a/mobile/apps/photos/lib/ui/home/memories/memories_strip.dart b/mobile/apps/photos/lib/ui/home/memories/memories_strip.dart
index f8aa1c5caa..2bb212d91d 100644
--- a/mobile/apps/photos/lib/ui/home/memories/memories_strip.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/memories_strip.dart
@@ -228,7 +228,7 @@ class _MemoriesStripWidgetState extends State<MemoriesStripWidget> {
(onTap) => MemoryCardWrapper(
id: "memoryLane_${memoryLane.personId}",
widget: () => MemoryLaneCardWidget(
- id: memoryLane.personId,
+ personId: memoryLane.personId,
oldestFace: oldestMemoryLaneFace,
face: newestMemoryLaneFace,
personName: memoryLanePerson?.data.name ?? "",
diff --git a/mobile/apps/photos/lib/ui/home/memories/memory_lane_card.dart b/mobile/apps/photos/lib/ui/home/memories/memory_lane_card.dart
index 67c9137bf3..46a13474b7 100644
--- a/mobile/apps/photos/lib/ui/home/memories/memory_lane_card.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/memory_lane_card.dart
@@ -2,11 +2,13 @@ import "dart:typed_data";
import "package:ente_components/ente_components.dart";
import "package:ente_strings/ente_strings.dart";
+import "package:ente_ui/theme/colors.dart";
import "package:flutter/material.dart";
+import "package:photos/service_locator.dart";
import "package:photos/ui/home/memories/memory_card_constants.dart";
class MemoryLaneCardWidget extends StatelessWidget {
- final String id;
+ final String personId;
final Uint8List oldestFace;
final Uint8List face;
final String personName;
@@ -14,7 +16,7 @@ class MemoryLaneCardWidget extends StatelessWidget {
final VoidCallback onTap;
const MemoryLaneCardWidget({
- required this.id,
+ required this.personId,
required this.oldestFace,
required this.face,
required this.personName,
@@ -37,9 +39,15 @@ class MemoryLaneCardWidget extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: kMemoryCardStripGap / 2),
child: GestureDetector(
onTap: onTap,
- child: SizedBox(
+ child: Container(
width: size.width,
height: size.height,
+ foregroundDecoration: localSettings.hasSeenMemoryLane(personId)
+ ? const BoxDecoration(
+ color: Color(0xFFBFBFBF),
+ backgroundBlendMode: BlendMode.saturation,
+ )
+ : null,
child: Stack(
clipBehavior: Clip.none,
children: [
@@ -85,7 +93,7 @@ class MemoryLaneCardWidget extends StatelessWidget {
bottom: 16,
width: size.width * 0.837837837838,
child: Hero(
- tag: 'memory-lane-title-$id',
+ tag: 'memory-lane-title-$personId',
child: Text(
title,
maxLines: 2,
@@ -94,7 +102,9 @@ class MemoryLaneCardWidget extends StatelessWidget {
inherit: false,
height: 16 / 14,
fontFamily: TextStyles.outfitFontFamily,
- color: Colors.white,
+ color: localSettings.hasSeenMemoryLane(personId)
+ ? textFaintDark
+ : Colors.white,
fontWeight: FontWeight.w700,
),
textAlign: TextAlign.left,