π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Update file app bar's favourite icon's colors
ashilkna616e0b67e45
diff --git a/mobile/lib/ui/viewer/file_details/favorite_widget.dart b/mobile/lib/ui/viewer/file_details/favorite_widget.dartindex 11c588b933..9911568948 100644--- a/mobile/lib/ui/viewer/file_details/favorite_widget.dart+++ b/mobile/lib/ui/viewer/file_details/favorite_widget.dart@@ -7,6 +7,7 @@ import "package:photos/core/configuration.dart";import "package:photos/generated/l10n.dart";import 'package:photos/models/file/file.dart';import "package:photos/services/favorites_service.dart";+import "package:photos/theme/ente_theme.dart";import "package:photos/ui/common/loading_widget.dart";import "package:photos/ui/notification/toast.dart";@@ -38,6 +39,7 @@ class _FavoriteWidgetState extends State<FavoriteWidget> {@overrideWidget build(BuildContext context) {+ final colorScheme = getEnteColorScheme(context);return FutureBuilder<bool>(future: _fetchData(),builder: (context, snapshot) {@@ -48,6 +50,14 @@ class _FavoriteWidgetState extends State<FavoriteWidget> {padding: 2,) // Add this line: LikeButton(+ bubblesColor: BubblesColor(+ dotPrimaryColor: colorScheme.primary700,+ dotSecondaryColor: colorScheme.primary400,+ ),+ circleColor: CircleColor(+ start: colorScheme.primary400,+ end: colorScheme.primary300,+ ),size: 24,isLiked: isLiked,onTap: (oldValue) async {@@ -100,9 +110,7 @@ class _FavoriteWidgetState extends State<FavoriteWidget> {isLiked? Icons.favorite_rounded: Icons.favorite_border_rounded,- color: isLiked- ? Colors.pinkAccent- : Colors.white, //same for both themes+ color: Colors.white, //same for both themessize: 24,);},