Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix photos lock screen theming, strings, and build

Manav Rathi709159f823fa
diff --git a/.github/workflows/photos-build.yml b/.github/workflows/photos-build.yml
index 76ee97b3c5..71d803f4d0 100644
--- a/.github/workflows/photos-build.yml
+++ b/.github/workflows/photos-build.yml
@@ -115,6 +115,10 @@ jobs:
- name: Install Flutter
uses: ./.github/actions/setup-flutter
+ - name: Generate strings localizations
+ run: flutter gen-l10n
+ working-directory: mobile/packages/strings
+
- name: Set build version
run: node ../../../.github/scripts/flutter-version.mjs photos set-build "${RELEASE_VERSION}" "${BUILD_NUMBER}"
@@ -233,6 +237,10 @@ jobs:
- name: Install Flutter
uses: ./.github/actions/setup-flutter
+ - name: Generate strings localizations
+ run: flutter gen-l10n
+ working-directory: mobile/packages/strings
+
- name: Set build version
run: node ../../../.github/scripts/flutter-version.mjs photos set-build "${RELEASE_VERSION}" "${BUILD_NUMBER}"
diff --git a/mobile/apps/photos/README.md b/mobile/apps/photos/README.md
index aa0bf9cc2e..5f0e98e06d 100644
--- a/mobile/apps/photos/README.md
+++ b/mobile/apps/photos/README.md
@@ -41,7 +41,7 @@ You can alternatively install the build from PlayStore or F-Droid.
2. Install dependencies and generate Rust bindings using one of these methods:
- **Using Melos (recommended):** Install Melos with `dart pub global activate melos`, then from any folder inside `mobile/`, run `melos bootstrap` and `melos run codegen:rust`.
- - **Using Flutter directly:** Run `flutter pub get --enforce-lockfile`, then from `rust/`, run `cargo codegen frb`.
+ - **Using Flutter directly:** Run `flutter pub get --enforce-lockfile` in `packages/strings` and this folder, then from `rust/`, run `cargo codegen frb`.
3. Run the app:
- Android: `flutter run --flavor independent`
diff --git a/mobile/apps/photos/assets/2.0x/lock_screen_background.png b/mobile/apps/photos/assets/2.0x/lock_screen_background.png
deleted file mode 100644
index a2bcb30856..0000000000
Binary files a/mobile/apps/photos/assets/2.0x/lock_screen_background.png and /dev/null differ
diff --git a/mobile/apps/photos/assets/2.0x/lock_screen_icon.png b/mobile/apps/photos/assets/2.0x/lock_screen_icon.png
new file mode 100644
index 0000000000..22898d97cf
Binary files /dev/null and b/mobile/apps/photos/assets/2.0x/lock_screen_icon.png differ
diff --git a/mobile/apps/photos/assets/3.0x/lock_screen_background.png b/mobile/apps/photos/assets/3.0x/lock_screen_background.png
deleted file mode 100644
index 72ad6b2639..0000000000
Binary files a/mobile/apps/photos/assets/3.0x/lock_screen_background.png and /dev/null differ
diff --git a/mobile/apps/photos/assets/3.0x/lock_screen_icon.png b/mobile/apps/photos/assets/3.0x/lock_screen_icon.png
new file mode 100644
index 0000000000..6ce078d919
Binary files /dev/null and b/mobile/apps/photos/assets/3.0x/lock_screen_icon.png differ
diff --git a/mobile/apps/photos/assets/lock_screen_background.png b/mobile/apps/photos/assets/lock_screen_background.png
deleted file mode 100644
index f5b2a9f8d6..0000000000
Binary files a/mobile/apps/photos/assets/lock_screen_background.png and /dev/null differ
diff --git a/mobile/apps/photos/assets/lock_screen_icon.png b/mobile/apps/photos/assets/lock_screen_icon.png
new file mode 100644
index 0000000000..1f2d823e4f
Binary files /dev/null and b/mobile/apps/photos/assets/lock_screen_icon.png differ
diff --git a/mobile/apps/photos/changes/lock-screen-refresh.md b/mobile/apps/photos/changes/lock-screen-refresh.md
new file mode 100644
index 0000000000..cf98db8144
--- /dev/null
+++ b/mobile/apps/photos/changes/lock-screen-refresh.md
@@ -0,0 +1 @@
+- Updated the app lock screen.
diff --git a/mobile/apps/photos/ios/Podfile.lock b/mobile/apps/photos/ios/Podfile.lock
index f665d0bf01..f75b5495cc 100644
--- a/mobile/apps/photos/ios/Podfile.lock
+++ b/mobile/apps/photos/ios/Podfile.lock
@@ -24,6 +24,8 @@ PODS:
- Flutter
- ente_rust (0.0.1):
- Flutter
+ - ente_screen_cover (0.0.1):
+ - Flutter
- ffmpeg_kit_custom (6.0.3)
- ffmpeg_kit_flutter (6.0.3):
- ffmpeg_kit_custom
@@ -140,8 +142,9 @@ PODS:
- libwebp/sharpyuv (1.5.0)
- libwebp/webp (1.5.0):
- libwebp/sharpyuv
- - local_auth_ios (0.0.1):
+ - local_auth_darwin (0.0.1):
- Flutter
+ - FlutterMacOS
- Mantle (2.2.0):
- Mantle/extobjc (= 2.2.0)
- Mantle/extobjc (2.2.0)
@@ -274,6 +277,7 @@ DEPENDENCIES:
- ente_photos_rust (from `.symlinks/plugins/ente_photos_rust/ios`)
- ente_qr (from `.symlinks/plugins/ente_qr/ios`)
- ente_rust (from `.symlinks/plugins/ente_rust/ios`)
+ - ente_screen_cover (from `.symlinks/plugins/ente_screen_cover/ios`)
- ffmpeg_kit_flutter (from `.symlinks/plugins/ffmpeg_kit_flutter/ios`)
- file_saver (from `.symlinks/plugins/file_saver/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
@@ -293,7 +297,7 @@ DEPENDENCIES:
- integration_test (from `.symlinks/plugins/integration_test/ios`)
- just_audio (from `.symlinks/plugins/just_audio/darwin`)
- launcher_icon_switcher (from `.symlinks/plugins/launcher_icon_switcher/ios`)
- - local_auth_ios (from `.symlinks/plugins/local_auth_ios/ios`)
+ - local_auth_darwin (from `.symlinks/plugins/local_auth_darwin/darwin`)
- maps_launcher (from `.symlinks/plugins/maps_launcher/ios`)
- media_extension (from `.symlinks/plugins/media_extension/ios`)
- media_kit_libs_ios_video (from `.symlinks/plugins/media_kit_libs_ios_video/ios`)
@@ -375,6 +379,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/ente_qr/ios"
ente_rust:
:path: ".symlinks/plugins/ente_rust/ios"
+ ente_screen_cover:
+ :path: ".symlinks/plugins/ente_screen_cover/ios"
ffmpeg_kit_flutter:
:path: ".symlinks/plugins/ffmpeg_kit_flutter/ios"
file_saver:
@@ -413,8 +419,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/just_audio/darwin"
launcher_icon_switcher:
:path: ".symlinks/plugins/launcher_icon_switcher/ios"
- local_auth_ios:
- :path: ".symlinks/plugins/local_auth_ios/ios"
+ local_auth_darwin:
+ :path: ".symlinks/plugins/local_auth_darwin/darwin"
maps_launcher:
:path: ".symlinks/plugins/maps_launcher/ios"
media_extension:
@@ -493,6 +499,7 @@ SPEC CHECKSUMS:
ente_photos_rust: a9e1166cc460dda69acd56fbed21afe87dfef562
ente_qr: 86beaf5d2644705db9b565b32dd8b82c05fb36af
ente_rust: d0197ebd5460e8f67576579452b073d698404abe
+ ente_screen_cover: 6792566774f1c83939f9c1d03ed0a1f1ded45ae4
ffmpeg_kit_custom: 682b4f2f1ff1f8abae5a92f6c3540f2441d5be99
ffmpeg_kit_flutter: 915b345acc97d4142e8a9a8549d177ff10f043f5
file_saver: 6cdbcddd690cb02b0c1a0c225b37cd805c2bf8b6
@@ -521,7 +528,7 @@ SPEC CHECKSUMS:
just_audio: 4e391f57b79cad2b0674030a00453ca5ce817eed
launcher_icon_switcher: 84c218d233505aa7d8655d8fa61a3ba802c022da
libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8
- local_auth_ios: f7a1841beef3151d140a967c2e46f30637cdf451
+ local_auth_darwin: c3ee6cce0a8d56be34c8ccb66ba31f7f180aaebb
Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d
maps_launcher: edf829809ba9e894d70e569bab11c16352dedb45
media_extension: 671e2567880d96c95c65c9a82ccceed8f2e309fd
@@ -559,7 +566,7 @@ SPEC CHECKSUMS:
system_info_plus: 555ce7047fbbf29154726db942ae785c29211740
thermal: d4c48be750d1ddbab36b0e2dcb2471531bc8df41
ua_client_hints: 92fe0d139619b73ec9fcb46cc7e079a26178f586
- url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
+ url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
video_player_avfoundation: 33f12ee023e354af9d062d2c366503424a914d10
video_thumbnail: b637e0ad5f588ca9945f6e2c927f73a69a661140
wakelock_plus: e29112ab3ef0b318e58cfa5c32326458be66b556
diff --git a/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj b/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj
index c464cab851..3d8d7d4593 100644
--- a/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj
+++ b/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj
@@ -640,6 +640,7 @@
"${BUILT_PRODUCTS_DIR}/ente_photos_rust/ente_photos_rust.framework",
"${BUILT_PRODUCTS_DIR}/ente_qr/ente_qr.framework",
"${BUILT_PRODUCTS_DIR}/ente_rust/ente_rust.framework",
+ "${BUILT_PRODUCTS_DIR}/ente_screen_cover/ente_screen_cover.framework",
"${BUILT_PRODUCTS_DIR}/file_saver/file_saver.framework",
"${BUILT_PRODUCTS_DIR}/flutter_email_sender/flutter_email_sender.framework",
"${BUILT_PRODUCTS_DIR}/flutter_image_compress_common/flutter_image_compress_common.framework",
@@ -656,7 +657,7 @@
"${BUILT_PRODUCTS_DIR}/just_audio/just_audio.framework",
"${BUILT_PRODUCTS_DIR}/launcher_icon_switcher/launcher_icon_switcher.framework",
"${BUILT_PRODUCTS_DIR}/libwebp/libwebp.framework",
- "${BUILT_PRODUCTS_DIR}/local_auth_ios/local_auth_ios.framework",
+ "${BUILT_PRODUCTS_DIR}/local_auth_darwin/local_auth_darwin.framework",
"${BUILT_PRODUCTS_DIR}/maps_launcher/maps_launcher.framework",
"${BUILT_PRODUCTS_DIR}/media_extension/media_extension.framework",
"${BUILT_PRODUCTS_DIR}/media_kit_libs_ios_video/media_kit_libs_ios_video.framework",
@@ -742,6 +743,7 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ente_photos_rust.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ente_qr.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ente_rust.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ente_screen_cover.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_saver.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_email_sender.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_image_compress_common.framework",
@@ -758,7 +760,7 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/just_audio.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/launcher_icon_switcher.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libwebp.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/local_auth_ios.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/local_auth_darwin.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/maps_launcher.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/media_extension.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/media_kit_libs_ios_video.framework",
diff --git a/mobile/apps/photos/lib/app.dart b/mobile/apps/photos/lib/app.dart
index add79f8741..721f90fa91 100644
--- a/mobile/apps/photos/lib/app.dart
+++ b/mobile/apps/photos/lib/app.dart
@@ -3,6 +3,7 @@ import 'dart:io';
import 'package:adaptive_theme/adaptive_theme.dart';
import "package:ente_pure_utils/ente_pure_utils.dart";
+import "package:ente_strings/l10n/strings_localizations.dart";
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:home_widget/home_widget.dart' as hw;
@@ -231,6 +232,7 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
supportedLocales: appSupportedLocales,
localeListResolutionCallback: localResolutionCallBack,
localizationsDelegates: const [
+ StringsLocalizations.delegate,
...AppLocalizations.localizationsDelegates,
],
),
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index 66ea6657fb..04aa884d98 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -1642,10 +1642,6 @@
"description": "Label of confirm button to add a new custom radius to the radius selector of a location tag"
},
"setRadius": "Set radius",
- "androidBiometricHint": "Verify identity",
- "@androidBiometricHint": {
- "description": "Hint message advising the user how to authenticate with biometrics. It is used on Android side. Maximum 60 characters."
- },
"androidBiometricNotRecognized": "Not recognized. Try again.",
"@androidBiometricNotRecognized": {
"description": "Message to let the user know that authentication was failed. It is used on Android side. Maximum 60 characters."
@@ -1654,14 +1650,6 @@
"@androidBiometricSuccess": {
"description": "Message to let the user know that authentication was successful. It is used on Android side. Maximum 60 characters."
},
- "androidCancelButton": "Cancel",
- "@androidCancelButton": {
- "description": "Message showed on a button that the user can click to leave the current dialog. It is used on Android side. Maximum 30 characters."
- },
- "androidSignInTitle": "Authentication required",
- "@androidSignInTitle": {
- "description": "Message showed as a title in a dialog which indicates the user that they need to scan biometric to continue. It is used on Android side. Maximum 60 characters."
- },
"androidBiometricRequiredTitle": "Biometric required",
"@androidBiometricRequiredTitle": {
"description": "Message showed as a title in a dialog which indicates the user has not set up biometric authentication on their device. It is used on Android side. Maximum 60 characters."
@@ -1674,26 +1662,14 @@
"@androidDeviceCredentialsSetupDescription": {
"description": "Message advising the user to go to the settings and configure device credentials on their device. It shows in a dialog on Android side."
},
- "goToSettings": "Go to settings",
- "@goToSettings": {
- "description": "Message showed on a button that the user can click to go to settings pages from the current dialog. It is used on both Android and iOS side. Maximum 30 characters."
- },
"androidGoToSettingsDescription": "Biometric authentication is not set up on your device. Go to 'Settings > Security' to add biometric authentication.",
"@androidGoToSettingsDescription": {
"description": "Message advising the user to go to the settings and configure biometric on their device. It shows in a dialog on Android side."
},
- "iOSLockOut": "Biometric authentication is disabled. Please lock and unlock your screen to enable it.",
- "@iOSLockOut": {
- "description": "Message advising the user to re-enable biometrics on their device. It shows in a dialog on iOS side."
- },
"iOSGoToSettingsDescription": "Biometric authentication is not set up on your device. Please either enable Touch ID or Face ID on your phone.",
"@iOSGoToSettingsDescription": {
"description": "Message advising the user to go to the settings and configure Biometrics for their device. It shows in a dialog on iOS side."
},
- "iOSOkButton": "OK",
- "@iOSOkButton": {
- "description": "Message showed on a button that the user can click to leave the current dialog. It is used on iOS side. Maximum 30 characters."
- },
"openstreetmapContributors": "OpenStreetMap contributors",
"hostedAtOsmFrance": "Hosted at OSM France",
"map": "Map",
@@ -1895,21 +1871,14 @@
"enableMLIndexingDesc": "Ente supports on-device machine learning for face recognition, magic search and other advanced search features",
"magicSearchHint": "Magic search allows to search photos by their contents, e.g. 'flower', 'red car', 'identity documents'",
"panorama": "Panorama",
- "reenterPassword": "Re-enter password",
- "reenterPin": "Re-enter PIN",
"deviceLock": "Device lock",
"pinLock": "PIN lock",
"next": "Next",
- "setNewPassword": "Set new password",
- "enterPin": "Enter PIN",
- "setNewPin": "Set new PIN",
"appLock": "App lock",
"lockScreenType": "Lock type",
"noSystemLockFound": "No system lock found",
- "tapToUnlock": "Tap to unlock",
"tooManyIncorrectAttempts": "Too many incorrect attempts",
"videoInfo": "Video Info",
- "autoLock": "Auto lock",
"immediately": "Immediately",
"autoLockFeatureDescription": "Time after which the app locks after being put in the background",
"hideContent": "Hide content",
diff --git a/mobile/apps/photos/lib/main.dart b/mobile/apps/photos/lib/main.dart
index 819d05cea7..9accbe9f38 100644
--- a/mobile/apps/photos/lib/main.dart
+++ b/mobile/apps/photos/lib/main.dart
@@ -12,6 +12,7 @@ import "package:ente_lock_screen/ui/lock_screen.dart";
import "package:ente_pure_utils/ente_pure_utils.dart";
import "package:ente_rust/ente_rust.dart";
import "package:ente_strings/l10n/strings_localizations.dart";
+import "package:ente_ui/theme/theme_config.dart" as ente_ui;
import "package:ffmpeg_kit_flutter/ffmpeg_kit_config.dart";
import 'package:flutter/foundation.dart';
import "package:flutter/gestures.dart";
@@ -87,6 +88,7 @@ enum ForegroundStartupMode { normal, picker }
void main() async {
debugRepaintRainbowEnabled = false;
WidgetsFlutterBinding.ensureInitialized();
+ ente_ui.AppThemeConfig.initialize(ente_ui.EnteApp.photos);
await initIsIPad();
if (isIPad) {
// Workaround for https://github.com/flutter/flutter/issues/177992
@@ -148,7 +150,11 @@ Future<void> _runInForeground(
savedThemeMode,
initialMediaExtensionAction: initialMediaExtensionAction,
),
- lockScreen: LockScreen(Configuration.instance),
+ lockScreen: LockScreen(
+ Configuration.instance,
+ authReasonBuilder: (context) =>
+ AppLocalizations.of(context).authToViewYourMemories,
+ ),
enabled:
await LockScreenSettings.instance.shouldShowLockScreen() ||
localSettings.isOnGuestView(),
diff --git a/mobile/apps/photos/lib/ui/settings/security/security_settings_page.dart b/mobile/apps/photos/lib/ui/settings/security/security_settings_page.dart
index 339ca0d507..67959e0632 100644
--- a/mobile/apps/photos/lib/ui/settings/security/security_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/security/security_settings_page.dart
@@ -260,7 +260,6 @@ class _SecuritySettingsPageState extends State<SecuritySettingsPage> {
final bool result = await requestAuthentication(
context,
AppLocalizations.of(context).authToChangeLockscreenSetting,
- macOSReason: AppLocalizations.of(context).authToChangeLockscreenSetting,
);
if (result) {
await Navigator.of(context).push(
diff --git a/mobile/apps/photos/pubspec.lock b/mobile/apps/photos/pubspec.lock
index 59bd57e472..d458b289ea 100644
--- a/mobile/apps/photos/pubspec.lock
+++ b/mobile/apps/photos/pubspec.lock
@@ -735,7 +735,7 @@ packages:
source: path
version: "1.0.0"
ente_ui:
- dependency: "direct overridden"
+ dependency: "direct main"
description:
path: "../../packages/ui"
relative: true
diff --git a/mobile/apps/photos/pubspec.yaml b/mobile/apps/photos/pubspec.yaml
index 1e7099c4b3..1600ceebf6 100644
--- a/mobile/apps/photos/pubspec.yaml
+++ b/mobile/apps/photos/pubspec.yaml
@@ -82,6 +82,8 @@ dependencies:
path: ../../packages/rust
ente_strings:
path: ../../packages/strings
+ ente_ui:
+ path: ../../packages/ui
equatable: 2.0.7
event_bus: 2.0.1
exif_reader: 4.1.0
diff --git a/mobile/packages/lock_screen/lib/auth_util.dart b/mobile/packages/lock_screen/lib/auth_util.dart
index 6a43d2e266..ad250004ba 100644
--- a/mobile/packages/lock_screen/lib/auth_util.dart
+++ b/mobile/packages/lock_screen/lib/auth_util.dart
@@ -271,7 +271,7 @@ _windowsLocalAuthenticationExceptionForLocalAuthException(
Future<bool> requestAuthentication(
BuildContext context,
String defaultReason, {
- required String macOSReason,
+ String? macOSReason,
bool isOpeningApp = false,
bool isAuthenticatingForInAppChange = false,
}) async {
@@ -293,7 +293,9 @@ Future<bool> requestAuthentication(
await _logLocalAuthState(localAuth);
final l10n = context.strings;
final result = await localAuth.authenticate(
- localizedReason: Platform.isMacOS ? macOSReason : defaultReason,
+ localizedReason: Platform.isMacOS
+ ? (macOSReason ?? defaultReason)
+ : defaultReason,
authMessages: [
AndroidAuthMessages(
cancelButton: l10n.androidCancelButton,
diff --git a/mobile/packages/lock_screen/lib/ui/lock_screen.dart b/mobile/packages/lock_screen/lib/ui/lock_screen.dart
index cd84016921..3212d6c742 100644
--- a/mobile/packages/lock_screen/lib/ui/lock_screen.dart
+++ b/mobile/packages/lock_screen/lib/ui/lock_screen.dart
@@ -18,7 +18,11 @@ import 'package:logging/logging.dart';
class LockScreen extends StatefulWidget {
final LockScreenHost config;
- const LockScreen(this.config, {super.key});
+ /// Overrides the biometric prompt reason. Resolved at auth time so consumers
+ /// can supply an app-specific localized message; defaults to a shared string.
+ final String Function(BuildContext context)? authReasonBuilder;
+
+ const LockScreen(this.config, {this.authReasonBuilder, super.key});
@override
State<LockScreen> createState() => _LockScreenState();
@@ -320,7 +324,8 @@ class _LockScreenState extends State<LockScreen> with WidgetsBindingObserver {
? false
: await requestAuthentication(
context,
- context.strings.authToViewSecrets,
+ widget.authReasonBuilder?.call(context) ??
+ context.strings.authToViewSecrets,
macOSReason: context.strings.unlock,
isOpeningApp: true,
);
diff --git a/mobile/packages/ui/lib/theme/colors.dart b/mobile/packages/ui/lib/theme/colors.dart
index 7d94aa168b..ab8f13f0a4 100644
--- a/mobile/packages/ui/lib/theme/colors.dart
+++ b/mobile/packages/ui/lib/theme/colors.dart
@@ -49,6 +49,17 @@ class EnteColorScheme extends ThemeExtension<EnteColorScheme> {
Color.fromRGBO(52, 152, 255, 1),
],
),
+ EnteApp.photos => (
+ primary700: const Color.fromRGBO(8, 194, 37, 1),
+ primary500: const Color.fromRGBO(8, 194, 37, 1),
+ primary400: const Color.fromRGBO(6, 157, 30, 1),
+ primary300: const Color.fromRGBO(5, 124, 24, 1),
+ gradientButtonBgColor: const Color.fromRGBO(8, 194, 37, 1),
+ gradientButtonBgColors: const [
+ Color.fromRGBO(8, 194, 37, 1),
+ Color.fromRGBO(6, 157, 30, 1),
+ ],
+ ),
};
return brightness == Brightness.light
diff --git a/mobile/packages/ui/lib/theme/theme_config.dart b/mobile/packages/ui/lib/theme/theme_config.dart
index 2b9eddd6e1..0da6973bf7 100644
--- a/mobile/packages/ui/lib/theme/theme_config.dart
+++ b/mobile/packages/ui/lib/theme/theme_config.dart
@@ -1,4 +1,4 @@
-enum EnteApp { auth, locker }
+enum EnteApp { auth, locker, photos }
class AppThemeConfig {
static EnteApp? _currentApp;