π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Change guest view icon at all places
ashilknbb65354ac7f1
diff --git a/mobile/assets/icons/guest_view_icon.svg b/mobile/assets/icons/guest_view_icon.svgnew file mode 100644index 0000000000..98ff43fac9--- /dev/null+++ b/mobile/assets/icons/guest_view_icon.svg@@ -0,0 +1,6 @@+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M18.29 2.89C17.262 2.752 15.907 2.75 14 2.75C13.8011 2.75 13.6103 2.67098 13.4697 2.53033C13.329 2.38968 13.25 2.19891 13.25 2C13.25 1.80109 13.329 1.61032 13.4697 1.46967C13.6103 1.32902 13.8011 1.25 14 1.25H14.056C15.894 1.25 17.35 1.25 18.489 1.403C19.661 1.561 20.61 1.893 21.359 2.641C22.043 3.326 22.417 3.977 22.592 4.982C22.75 5.886 22.75 7.104 22.75 8.904V9C22.75 9.19891 22.671 9.38968 22.5303 9.53033C22.3897 9.67098 22.1989 9.75 22 9.75C21.8011 9.75 21.6103 9.67098 21.4697 9.53033C21.329 9.38968 21.25 9.19891 21.25 9C21.25 7.08 21.247 5.999 21.115 5.24C20.997 4.567 20.785 4.189 20.298 3.702C19.875 3.279 19.295 3.025 18.289 2.89M2.75 15C2.75 14.8011 2.67098 14.6103 2.53033 14.4697C2.38968 14.329 2.19891 14.25 2 14.25C1.80109 14.25 1.61032 14.329 1.46967 14.4697C1.32902 14.6103 1.25 14.8011 1.25 15V15.096C1.25 16.896 1.25 18.114 1.408 19.018C1.583 20.023 1.957 20.674 2.641 21.358C3.39 22.108 4.339 22.439 5.511 22.597C6.651 22.75 8.106 22.75 9.944 22.75H10C10.1989 22.75 10.3897 22.671 10.5303 22.5303C10.671 22.3897 10.75 22.1989 10.75 22C10.75 21.8011 10.671 21.6103 10.5303 21.4697C10.3897 21.329 10.1989 21.25 10 21.25C8.093 21.25 6.739 21.248 5.71 21.11C4.705 20.975 4.125 20.721 3.702 20.298C3.215 19.811 3.002 19.433 2.885 18.76C2.753 18.001 2.75 16.92 2.75 15ZM22.75 15C22.75 14.8011 22.671 14.6103 22.5303 14.4697C22.3897 14.329 22.1989 14.25 22 14.25C21.8011 14.25 21.6103 14.329 21.4697 14.4697C21.329 14.6103 21.25 14.8011 21.25 15C21.25 16.92 21.247 18.001 21.115 18.76C20.997 19.433 20.785 19.811 20.298 20.298C19.875 20.721 19.295 20.975 18.289 21.11C17.262 21.248 15.907 21.25 14 21.25C13.8011 21.25 13.6103 21.329 13.4697 21.4697C13.329 21.6103 13.25 21.8011 13.25 22C13.25 22.1989 13.329 22.3897 13.4697 22.5303C13.6103 22.671 13.8011 22.75 14 22.75H14.056C15.894 22.75 17.35 22.75 18.489 22.597C19.661 22.439 20.61 22.107 21.359 21.359C22.043 20.674 22.417 20.023 22.592 19.018C22.75 18.114 22.75 16.895 22.75 15.096V15ZM10 1.25H9.944C8.106 1.25 6.65 1.25 5.511 1.403C4.339 1.561 3.39 1.893 2.641 2.641C1.957 3.326 1.583 3.977 1.408 4.982C1.25 5.886 1.25 7.104 1.25 8.904V9C1.25 9.19891 1.32902 9.38968 1.46967 9.53033C1.61032 9.67098 1.80109 9.75 2 9.75C2.19891 9.75 2.38968 9.67098 2.53033 9.53033C2.67098 9.38968 2.75 9.19891 2.75 9C2.75 7.08 2.753 5.999 2.885 5.24C3.003 4.567 3.215 4.189 3.702 3.702C4.125 3.279 4.705 3.025 5.711 2.89C6.739 2.752 8.093 2.75 10 2.75C10.1989 2.75 10.3897 2.67098 10.5303 2.53033C10.671 2.38968 10.75 2.19891 10.75 2C10.75 1.80109 10.671 1.61032 10.5303 1.46967C10.3897 1.32902 10.1989 1.25 10 1.25Z" fill="black"/>+<path d="M18.29 2.89C17.262 2.752 15.907 2.75 14 2.75C13.8011 2.75 13.6103 2.67098 13.4697 2.53033C13.329 2.38968 13.25 2.19891 13.25 2C13.25 1.80109 13.329 1.61032 13.4697 1.46967C13.6103 1.32902 13.8011 1.25 14 1.25H14.056C15.894 1.25 17.35 1.25 18.489 1.403C19.661 1.561 20.61 1.893 21.359 2.641C22.043 3.326 22.417 3.977 22.592 4.982C22.75 5.886 22.75 7.104 22.75 8.904V9C22.75 9.19891 22.671 9.38968 22.5303 9.53033C22.3897 9.67098 22.1989 9.75 22 9.75C21.8011 9.75 21.6103 9.67098 21.4697 9.53033C21.329 9.38968 21.25 9.19891 21.25 9C21.25 7.08 21.247 5.999 21.115 5.24C20.997 4.567 20.785 4.189 20.298 3.702C19.875 3.279 19.295 3.025 18.289 2.89M2.75 15C2.75 14.8011 2.67098 14.6103 2.53033 14.4697C2.38968 14.329 2.19891 14.25 2 14.25C1.80109 14.25 1.61032 14.329 1.46967 14.4697C1.32902 14.6103 1.25 14.8011 1.25 15V15.096C1.25 16.896 1.25 18.114 1.408 19.018C1.583 20.023 1.957 20.674 2.641 21.358C3.39 22.108 4.339 22.439 5.511 22.597C6.651 22.75 8.106 22.75 9.944 22.75H10C10.1989 22.75 10.3897 22.671 10.5303 22.5303C10.671 22.3897 10.75 22.1989 10.75 22C10.75 21.8011 10.671 21.6103 10.5303 21.4697C10.3897 21.329 10.1989 21.25 10 21.25C8.093 21.25 6.739 21.248 5.71 21.11C4.705 20.975 4.125 20.721 3.702 20.298C3.215 19.811 3.002 19.433 2.885 18.76C2.753 18.001 2.75 16.92 2.75 15ZM22.75 15C22.75 14.8011 22.671 14.6103 22.5303 14.4697C22.3897 14.329 22.1989 14.25 22 14.25C21.8011 14.25 21.6103 14.329 21.4697 14.4697C21.329 14.6103 21.25 14.8011 21.25 15C21.25 16.92 21.247 18.001 21.115 18.76C20.997 19.433 20.785 19.811 20.298 20.298C19.875 20.721 19.295 20.975 18.289 21.11C17.262 21.248 15.907 21.25 14 21.25C13.8011 21.25 13.6103 21.329 13.4697 21.4697C13.329 21.6103 13.25 21.8011 13.25 22C13.25 22.1989 13.329 22.3897 13.4697 22.5303C13.6103 22.671 13.8011 22.75 14 22.75H14.056C15.894 22.75 17.35 22.75 18.489 22.597C19.661 22.439 20.61 22.107 21.359 21.359C22.043 20.674 22.417 20.023 22.592 19.018C22.75 18.114 22.75 16.895 22.75 15.096V15ZM10 1.25H9.944C8.106 1.25 6.65 1.25 5.511 1.403C4.339 1.561 3.39 1.893 2.641 2.641C1.957 3.326 1.583 3.977 1.408 4.982C1.25 5.886 1.25 7.104 1.25 8.904V9C1.25 9.19891 1.32902 9.38968 1.46967 9.53033C1.61032 9.67098 1.80109 9.75 2 9.75C2.19891 9.75 2.38968 9.67098 2.53033 9.53033C2.67098 9.38968 2.75 9.19891 2.75 9C2.75 7.08 2.753 5.999 2.885 5.24C3.003 4.567 3.215 4.189 3.702 3.702C4.125 3.279 4.705 3.025 5.711 2.89C6.739 2.752 8.093 2.75 10 2.75C10.1989 2.75 10.3897 2.67098 10.5303 2.53033C10.671 2.38968 10.75 2.19891 10.75 2C10.75 1.80109 10.671 1.61032 10.5303 1.46967C10.3897 1.32902 10.1989 1.25 10 1.25Z" stroke="black" stroke-width="0.5"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M12 9.25C11.2707 9.25 10.5712 9.53973 10.0555 10.0555C9.53973 10.5712 9.25 11.2707 9.25 12C9.25 12.7293 9.53973 13.4288 10.0555 13.9445C10.5712 14.4603 11.2707 14.75 12 14.75C12.7293 14.75 13.4288 14.4603 13.9445 13.9445C14.4603 13.4288 14.75 12.7293 14.75 12C14.75 11.2707 14.4603 10.5712 13.9445 10.0555C13.4288 9.53973 12.7293 9.25 12 9.25ZM10.75 12C10.75 11.6685 10.8817 11.3505 11.1161 11.1161C11.3505 10.8817 11.6685 10.75 12 10.75C12.3315 10.75 12.6495 10.8817 12.8839 11.1161C13.1183 11.3505 13.25 11.6685 13.25 12C13.25 12.3315 13.1183 12.6495 12.8839 12.8839C12.6495 13.1183 12.3315 13.25 12 13.25C11.6685 13.25 11.3505 13.1183 11.1161 12.8839C10.8817 12.6495 10.75 12.3315 10.75 12Z" fill="black"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M5.324 9.45C6.594 7.977 8.776 6.25 12 6.25C15.224 6.25 17.406 7.977 18.676 9.45L18.708 9.488C18.978 9.802 19.258 10.125 19.449 10.512C19.663 10.945 19.75 11.409 19.75 12C19.75 12.59 19.663 13.055 19.45 13.488C19.258 13.875 18.979 14.198 18.708 14.512L18.676 14.549C17.406 16.023 15.224 17.75 12 17.75C8.776 17.75 6.594 16.023 5.324 14.55L5.292 14.512C5.022 14.198 4.742 13.875 4.551 13.488C4.337 13.055 4.25 12.591 4.25 12C4.25 11.41 4.337 10.945 4.55 10.512C4.742 10.125 5.021 9.802 5.292 9.488L5.324 9.45ZM12 7.75C9.369 7.75 7.566 9.147 6.46 10.43C6.147 10.794 5.994 10.979 5.895 11.177C5.812 11.346 5.75 11.566 5.75 12C5.75 12.434 5.812 12.654 5.895 12.823C5.994 13.021 6.147 13.206 6.46 13.57C7.566 14.853 9.369 16.25 12 16.25C14.631 16.25 16.434 14.853 17.54 13.57C17.854 13.206 18.006 13.021 18.105 12.823C18.188 12.654 18.25 12.434 18.25 12C18.25 11.566 18.188 11.346 18.105 11.177C18.006 10.979 17.853 10.794 17.539 10.43C16.435 9.147 14.632 7.75 12 7.75Z" fill="black"/>+</svg>diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dartindex 29b71de3f9..bca7aa35e7 100644--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart@@ -275,7 +275,7 @@ class _FileSelectionActionsWidgetState}items.add(SelectionActionButton(- icon: Icons.people_outline_rounded,+ svgAssetPath: "assets/icons/guest_view_icon.svg",labelText: S.of(context).guestView,onTap: _onGuestViewClick,),diff --git a/mobile/lib/ui/viewer/file/file_app_bar.dart b/mobile/lib/ui/viewer/file/file_app_bar.dartindex 8fbf260bca..362868eeec 100644--- a/mobile/lib/ui/viewer/file/file_app_bar.dart+++ b/mobile/lib/ui/viewer/file/file_app_bar.dart@@ -2,6 +2,7 @@ import "dart:async";import 'dart:io';import 'package:flutter/material.dart';+import "package:flutter_svg/flutter_svg.dart";import "package:local_auth/local_auth.dart";import 'package:logging/logging.dart';import 'package:media_extension/media_extension.dart';@@ -18,6 +19,7 @@ import 'package:photos/models/selected_files.dart';import 'package:photos/services/collections_service.dart';import 'package:photos/services/hidden_service.dart';import "package:photos/services/local_authentication_service.dart";+import "package:photos/theme/ente_theme.dart";import 'package:photos/ui/collections/collection_action_sheet.dart';import 'package:photos/ui/viewer/file/custom_app_bar.dart';import "package:photos/ui/viewer/file_details/favorite_widget.dart";@@ -298,9 +300,12 @@ class FileAppBarState extends State<FileAppBar> {value: 6,child: Row(children: [- Icon(- Icons.people_outline_rounded,- color: Theme.of(context).iconTheme.color,+ SvgPicture.asset(+ "assets/icons/guest_view_icon.svg",+ colorFilter: ColorFilter.mode(+ getEnteColorScheme(context).textBase,+ BlendMode.srcIn,+ ),),const Padding(padding: EdgeInsets.all(8),diff --git a/mobile/pubspec.lock b/mobile/pubspec.lockindex 0bb93644b3..a91ffe157b 100644--- a/mobile/pubspec.lock+++ b/mobile/pubspec.lock@@ -1296,18 +1296,18 @@ packages:dependency: transitivedescription:name: leak_tracker- sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"+ sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"url: "https://pub.dev"source: hosted- version: "10.0.5"+ version: "10.0.4"leak_tracker_flutter_testing:dependency: transitivedescription:name: leak_tracker_flutter_testing- sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"+ sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"url: "https://pub.dev"source: hosted- version: "3.0.5"+ version: "3.0.3"leak_tracker_testing:dependency: transitivedescription:@@ -1440,10 +1440,10 @@ packages:dependency: transitivedescription:name: material_color_utilities- sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec+ sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"url: "https://pub.dev"source: hosted- version: "0.11.1"+ version: "0.8.0"media_extension:dependency: "direct main"description:@@ -1528,10 +1528,10 @@ packages:dependency: transitivedescription:name: meta- sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7+ sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"url: "https://pub.dev"source: hosted- version: "1.15.0"+ version: "1.12.0"mgrs_dart:dependency: transitivedescription:@@ -1885,10 +1885,10 @@ packages:dependency: transitivedescription:name: platform- sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"+ sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"url: "https://pub.dev"source: hosted- version: "3.1.5"+ version: "3.1.4"plugin_platform_interface:dependency: transitivedescription:@@ -2394,26 +2394,26 @@ packages:dependency: "direct dev"description:name: test- sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e"+ sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073"url: "https://pub.dev"source: hosted- version: "1.25.7"+ version: "1.25.2"test_api:dependency: transitivedescription:name: test_api- sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"+ sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"url: "https://pub.dev"source: hosted- version: "0.7.2"+ version: "0.7.0"test_core:dependency: transitivedescription:name: test_core- sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696"+ sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4"url: "https://pub.dev"source: hosted- version: "0.6.4"+ version: "0.6.0"timezone:dependency: transitivedescription:@@ -2692,10 +2692,10 @@ packages:dependency: transitivedescription:name: vm_service- sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc+ sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"url: "https://pub.dev"source: hosted- version: "14.2.4"+ version: "14.2.1"volume_controller:dependency: transitivedescription:diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yamlindex 20297b2b39..9d511c2ffa 100644--- a/mobile/pubspec.yaml+++ b/mobile/pubspec.yaml@@ -250,6 +250,7 @@ flutter:- assets/- assets/models/clip/- assets/video-editor/+ - assets/icons/fonts:- family: Interfonts: