π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Use primary stroke for selected list rows
ashilknae5a616c35d2
diff --git a/mobile/apps/photos/lib/ui/components/thumbnail_list_item.dart b/mobile/apps/photos/lib/ui/components/thumbnail_list_item.dartindex b02d3a60c4..9745d6853b 100644--- a/mobile/apps/photos/lib/ui/components/thumbnail_list_item.dart+++ b/mobile/apps/photos/lib/ui/components/thumbnail_list_item.dart@@ -1,3 +1,4 @@+import "package:ente_components/theme/colors.dart" as component_colors;import "package:flutter/material.dart";import "package:photos/theme/colors.dart";import "package:photos/theme/ente_theme.dart";@@ -68,7 +69,7 @@ class _ThumbnailListItemState extends State<ThumbnailListItem> {borderRadius: BorderRadius.all(Radius.circular(widget.borderRadius)),border: Border.all(color: widget.isSelected- ? widget.selectedBorderColor ?? colorScheme.greenBase+ ? _selectedBorderColor(context): widget.borderColor ?? _backgroundColor(colorScheme),),),@@ -127,6 +128,14 @@ class _ThumbnailListItemState extends State<ThumbnailListItem> {return widget.backgroundColor ?? colorScheme.fill;}+ Color _selectedBorderColor(BuildContext context) {+ return widget.selectedBorderColor ??+ component_colors.ColorTokens.forApp(+ component_colors.ComponentApp.photos,+ brightness: Theme.of(context).brightness,+ ).primaryStroke;+ }+void _setPressed(bool value) {if (_isPressed == value) {return;diff --git a/mobile/apps/photos/pubspec.lock b/mobile/apps/photos/pubspec.lockindex a2a17d71e2..555c67fc78 100644--- a/mobile/apps/photos/pubspec.lock+++ b/mobile/apps/photos/pubspec.lock@@ -594,6 +594,13 @@ packages:relative: truesource: pathversion: "0.0.1"+ ente_components:+ dependency: "direct main"+ description:+ path: "../../packages/ente_components"+ relative: true+ source: path+ version: "0.1.0"ente_contacts:dependency: "direct main"description:diff --git a/mobile/apps/photos/pubspec.yaml b/mobile/apps/photos/pubspec.yamlindex f89c76b855..67443a619a 100644--- a/mobile/apps/photos/pubspec.yaml+++ b/mobile/apps/photos/pubspec.yaml@@ -57,6 +57,8 @@ dependencies:encrypt: 5.0.3ente_cast:path: plugins/ente_cast+ ente_components:+ path: ../../packages/ente_componentsente_contacts:path: ../../packages/contactsente_crypto: