π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove ColorFiltered widgets
laurenspriem6a327604f362
diff --git a/mobile/apps/photos/lib/ui/collections/album/row_item.dart b/mobile/apps/photos/lib/ui/collections/album/row_item.dartindex e143d3d56b..3c0be38d69 100644--- a/mobile/apps/photos/lib/ui/collections/album/row_item.dart+++ b/mobile/apps/photos/lib/ui/collections/album/row_item.dart@@ -117,17 +117,20 @@ class AlbumRowItemWidget extends StatelessWidget {return Hero(tag: heroTag,transitionOnUserGestures: true,- child: isSelected- ? ColorFiltered(- colorFilter: ColorFilter.mode(- Colors.black.withValues(+ child: Stack(+ fit: StackFit.expand,+ children: [+ thumbnailWidget,+ if (isSelected)+ Container(+ decoration: BoxDecoration(+ color: Colors.black.withValues(alpha: 0.4,),- BlendMode.darken,),- child: thumbnailWidget,- )- : thumbnailWidget,+ ),+ ],+ ),);} else {return Container(diff --git a/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart b/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dartindex d4292ffdb4..62ffd4ba71 100644--- a/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart+++ b/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart@@ -92,121 +92,68 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {),child: ClipRRect(borderRadius: BorderRadius.circular(5),- child: isSeen- ? ColorFiltered(- colorFilter: const ColorFilter.mode(- Color(0xFFBFBFBF),- BlendMode.hue,+ child: Container(+ foregroundDecoration: isSeen+ ? const BoxDecoration(+ color: Color(0xFFBFBFBF),+ backgroundBlendMode: BlendMode.saturation,+ )+ : null,+ child: Stack(+ fit: StackFit.expand,+ alignment: Alignment.bottomCenter,+ children: [+ Hero(+ tag: "memories" + memory.file.tag,+ child: ThumbnailWidget(+ memory.file,+ shouldShowArchiveStatus: false,+ shouldShowSyncStatus: false,+ key: Key("memories" + memory.file.tag),),- child: Stack(- fit: StackFit.expand,- alignment: Alignment.bottomCenter,- children: [- Hero(- tag: "memories" + memory.file.tag,- child: ThumbnailWidget(- memory.file,- shouldShowArchiveStatus: false,- shouldShowSyncStatus: false,- key: Key("memories" + memory.file.tag),- ),- ),- Container(- decoration: BoxDecoration(- gradient: LinearGradient(- colors: [- Colors.black.withValues(alpha: 0.5),- Colors.transparent,- ],- stops: const [0, 1],- begin: Alignment.bottomCenter,- end: Alignment.topCenter,- ),- ),- ),- Positioned(- bottom: 8,- child: SizedBox(- width: widget.width,- child: Padding(- padding: const EdgeInsets.symmetric(- horizontal: 8.0,- ),- child: Hero(- tag: title,- child: Center(- child: Text(- title,- style: getEnteTextTheme(context)- .miniBold- .copyWith(- color: isSeen- ? textFaintDark- : Colors.white,- ),- textAlign: TextAlign.left,- ),- ),- ),- ),- ),- ),- ],- ),- )- : Stack(- fit: StackFit.expand,- alignment: Alignment.bottomCenter,- children: [- Hero(- tag: "memories" + memory.file.tag,- child: ThumbnailWidget(- memory.file,- shouldShowArchiveStatus: false,- shouldShowSyncStatus: false,- key: Key("memories" + memory.file.tag),- ),+ ),+ Container(+ decoration: BoxDecoration(+ gradient: LinearGradient(+ colors: [+ Colors.black.withValues(alpha: 0.5),+ Colors.transparent,+ ],+ stops: const [0, 1],+ begin: Alignment.bottomCenter,+ end: Alignment.topCenter,),- Container(- decoration: BoxDecoration(- gradient: LinearGradient(- colors: [- Colors.black.withValues(alpha: 0.5),- Colors.transparent,- ],- stops: const [0, 1],- begin: Alignment.bottomCenter,- end: Alignment.topCenter,- ),+ ),+ ),+ Positioned(+ bottom: 8,+ child: SizedBox(+ width: widget.width,+ child: Padding(+ padding: const EdgeInsets.symmetric(+ horizontal: 8.0,),- ),- Positioned(- bottom: 8,- child: SizedBox(- width: widget.width,- child: Padding(- padding: const EdgeInsets.symmetric(- horizontal: 8.0,- ),- child: Hero(- tag: title,- child: Center(- child: Text(- title,- style: getEnteTextTheme(context)- .miniBold- .copyWith(- color: Colors.white,- ),- textAlign: TextAlign.left,- ),- ),+ child: Hero(+ tag: title,+ child: Center(+ child: Text(+ title,+ style: getEnteTextTheme(context)+ .miniBold+ .copyWith(+ color:+ isSeen ? textFaintDark : Colors.white,+ ),+ textAlign: TextAlign.left,),),),),- ],+ ),),+ ],+ ),+ ),),),),diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dartindex 9bbab500e7..b42b2cd444 100644--- a/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart@@ -215,14 +215,17 @@ class SelectablePersonSearchExample extends StatelessWidget {: BorderRadius.circular(81),),),- child: ColorFiltered(- colorFilter: ColorFilter.mode(- Colors.black.withValues(- alpha: isSelected ? 0.4 : 0,- ),- BlendMode.darken,- ),- child: child,+ child: Stack(+ fit: StackFit.expand,+ children: [+ child,+ if (isSelected)+ Container(+ decoration: BoxDecoration(+ color: Colors.black.withValues(alpha: 0.4),+ ),+ ),+ ],),),);diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dartindex ddfaae0eaf..6a8f7b42ca 100644--- a/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart@@ -284,14 +284,17 @@ class PersonSearchExample extends StatelessWidget {: BorderRadius.circular(81),),),- child: ColorFiltered(- colorFilter: ColorFilter.mode(- Colors.black.withValues(- alpha: isSelected ? 0.4 : 0,- ),- BlendMode.darken,- ),- child: child,+ child: Stack(+ fit: StackFit.expand,+ children: [+ child,+ if (isSelected)+ Container(+ decoration: BoxDecoration(+ color: Colors.black.withValues(alpha: 0.4),+ ),+ ),+ ],),),);