π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update text detection overlay button icon
Codex04b5faab235b
diff --git a/mobile/apps/photos/assets/detect_text.svg b/mobile/apps/photos/assets/detect_text.svgnew file mode 100644index 0000000000..2a1870f163--- /dev/null+++ b/mobile/apps/photos/assets/detect_text.svg@@ -0,0 +1,10 @@+<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect width="32" height="32" rx="16" fill="#08C225"/>+<path d="M17.3307 20H14.6641" stroke="white" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M16.0017 12V20.0004M16.0017 12C16.6184 12 17.4104 12.0136 18.041 12.0784C18.3077 12.1059 18.4411 12.1196 18.5591 12.168C18.8047 12.2686 19.0025 12.4892 19.077 12.7452C19.1128 12.8684 19.1128 13.0088 19.1128 13.2898M16.0017 12C15.3851 12 14.5931 12.0136 13.9625 12.0784C13.6957 12.1059 13.5624 12.1196 13.4443 12.168C13.1988 12.2686 13.0009 12.4892 12.9264 12.7452C12.8906 12.8684 12.8906 13.0088 12.8906 13.2898" stroke="white" stroke-width="1.3" stroke-linecap="round"/>+<path d="M9.35938 11.3738V11.2005C9.35938 10.5533 9.35938 10.2297 9.48532 9.98251C9.59611 9.76508 9.77289 9.5883 9.99032 9.47751C10.2375 9.35156 10.5611 9.35156 11.2083 9.35156H11.3816" stroke="white" stroke-width="1.3" stroke-linecap="round"/>+<path d="M20.625 9.35156H20.7983C21.4455 9.35156 21.7691 9.35156 22.0163 9.47751C22.2337 9.5883 22.4105 9.76508 22.5213 9.98251C22.6472 10.2297 22.6472 10.5533 22.6472 11.2005V11.3738" stroke="white" stroke-width="1.3" stroke-linecap="round"/>+<path d="M22.6472 20.6172V20.7905C22.6472 21.4377 22.6472 21.7613 22.5213 22.0085C22.4105 22.2259 22.2337 22.4027 22.0163 22.5135C21.7691 22.6394 21.4455 22.6394 20.7983 22.6394H20.625" stroke="white" stroke-width="1.3" stroke-linecap="round"/>+<path d="M9.35938 20.6172V20.7905C9.35938 21.4377 9.35938 21.7613 9.48532 22.0085C9.59611 22.2259 9.77289 22.4027 9.99032 22.5135C10.2375 22.6394 10.5611 22.6394 11.2083 22.6394H11.3816" stroke="white" stroke-width="1.3" stroke-linecap="round"/>+</svg>+diff --git a/mobile/apps/photos/lib/ui/viewer/file/text_detection_overlay_button.dart b/mobile/apps/photos/lib/ui/viewer/file/text_detection_overlay_button.dartindex c87328abf3..172dceffaf 100644--- a/mobile/apps/photos/lib/ui/viewer/file/text_detection_overlay_button.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/text_detection_overlay_button.dart@@ -2,6 +2,7 @@ import "dart:io";import "package:flutter/foundation.dart";import "package:flutter/material.dart";+import "package:flutter_svg/flutter_svg.dart";import "package:logging/logging.dart";import "package:mobile_ocr/mobile_ocr.dart";import "package:photos/models/file/file.dart";@@ -199,20 +200,16 @@ class _TextDetectionOverlayButtonStateconst String detectTextLabel = "Detect Text";return Tooltip(message: detectTextLabel,- child: Material(- color: Colors.black.withValues(alpha: 0.45),- shape: const CircleBorder(),- child: IconButton(- tooltip: detectTextLabel,- iconSize: 20,- constraints: const BoxConstraints.tightFor(width: 44, height: 44),- padding: EdgeInsets.zero,- onPressed: _onPressed,- icon: const Icon(- Icons.text_fields,- color: Colors.white,- size: 20,- ),+ child: IconButton(+ tooltip: detectTextLabel,+ constraints: const BoxConstraints.tightFor(width: 32, height: 32),+ padding: EdgeInsets.zero,+ onPressed: _onPressed,+ icon: SvgPicture.asset(+ "assets/detect_text.svg",+ width: 32,+ height: 32,+ semanticsLabel: detectTextLabel,),),);