Skip to content

armgit / ente

Public Imported from GitHub
0

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

minor fixes

AmanRajSinghMourya1e1c74dc8c99
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index 7d981e11bd..d0e981986d 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -2585,7 +2585,7 @@
"deleteOnDeviceFiles": "Delete on device files",
"noHiddenFilesOnDevice": "No hidden files on device",
"welcome": "Welcome",
- "grantGalleryPermissionDesc": "Grant gallery access and enable People and Pets to end-to-end encrypt, recognise, and organise your photos.",
+ "grantGalleryPermissionDesc": "Grant permission to access and organize photos with face recognition.\n\nAll processing happens on your device.",
"grantPermission": "Grant permission",
"privateAI": "Private AI",
"privateAIDescription": "Ente uses on-device AI to analyze your photos for faces, objects, locations, and text. This data is used to power features like face recognition and smart search. Everything is processed and stored locally on your device β€” nothing is ever uploaded to our servers.",
diff --git a/mobile/apps/photos/lib/ui/components/banners/offline_settings_banner.dart b/mobile/apps/photos/lib/ui/components/banners/offline_settings_banner.dart
index 38e6cb5df7..42cad2bf0e 100644
--- a/mobile/apps/photos/lib/ui/components/banners/offline_settings_banner.dart
+++ b/mobile/apps/photos/lib/ui/components/banners/offline_settings_banner.dart
@@ -73,7 +73,7 @@ class OfflineSettingsBanner extends StatelessWidget {
),
const SizedBox(height: 4),
ConstrainedBox(
- constraints: const BoxConstraints(maxWidth: 235),
+ constraints: const BoxConstraints(maxWidth: 200),
child: Text(
l10n.offlineSettingsBannerDesc,
style: descriptionStyle,
@@ -107,7 +107,7 @@ class OfflineSettingsBanner extends StatelessWidget {
child: IgnorePointer(
child: Image.asset(
"assets/ducky_settings.png",
- height: 120,
+ height: 100,
fit: BoxFit.contain,
),
),
diff --git a/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart b/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart
index 11e1edef73..f4c0c63829 100644
--- a/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart
@@ -12,11 +12,8 @@ import "package:photos/generated/l10n.dart";
import "package:photos/l10n/l10n.dart";
import "package:photos/service_locator.dart";
import 'package:photos/services/sync/sync_service.dart';
-import "package:photos/theme/colors.dart";
import "package:photos/theme/ente_theme.dart";
-import "package:photos/theme/text_style.dart";
import "package:photos/ui/common/gradient_button.dart";
-import "package:photos/ui/common/web_page.dart";
import "package:photos/ui/components/buttons/button_widget_v2.dart";
import "package:photos/ui/notification/toast.dart";
import "package:photos/utils/dialog_util.dart";
@@ -427,8 +424,6 @@ class _GrantPermissionsWidgetState extends State<GrantPermissionsWidget> {
AppLocalizations.of(context).grantPermission,
onTap: _onTapOfflineGrantPermission,
),
- const SizedBox(height: 20),
- _buildTermsFooter(context, colorScheme, textTheme),
const SizedBox(height: 24),
],
),
@@ -505,58 +500,4 @@ class _GrantPermissionsWidgetState extends State<GrantPermissionsWidget> {
),
);
}
-
- Widget _buildTermsFooter(
- BuildContext context,
- EnteColorScheme colorScheme,
- EnteTextTheme textTheme,
- ) {
- final linkColor = colorScheme.textFaint;
-
- return SizedBox(
- child: StyledText(
- text: AppLocalizations.of(context).byAgreeing,
- textAlign: TextAlign.center,
- style: textTheme.small.copyWith(
- color: colorScheme.textFaint,
- ),
- tags: {
- 'terms': StyledTextActionTag(
- (String? text, Map<String?, String?> attrs) =>
- Navigator.of(context).push(
- MaterialPageRoute(
- builder: (BuildContext context) {
- return WebPage(
- AppLocalizations.of(context).termsOfServicesTitle,
- "https://ente.io/terms",
- );
- },
- ),
- ),
- style: TextStyle(
- decoration: TextDecoration.underline,
- color: linkColor,
- ),
- ),
- 'policy': StyledTextActionTag(
- (String? text, Map<String?, String?> attrs) =>
- Navigator.of(context).push(
- MaterialPageRoute(
- builder: (BuildContext context) {
- return WebPage(
- AppLocalizations.of(context).privacyPolicyTitle,
- "https://ente.io/privacy",
- );
- },
- ),
- ),
- style: TextStyle(
- decoration: TextDecoration.underline,
- color: linkColor,
- ),
- ),
- },
- ),
- );
- }
}
diff --git a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
index e2f0de70d0..3eb24f8e54 100644
--- a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
@@ -352,7 +352,7 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
];
return ConstrainedBox(
- constraints: const BoxConstraints(maxHeight: 400),
+ constraints: const BoxConstraints(maxHeight: 320),
child: PageView.builder(
controller: _pageController,
itemBuilder: (context, index) {
diff --git a/mobile/apps/photos/lib/ui/offline/empty/on_ente.dart b/mobile/apps/photos/lib/ui/offline/empty/on_ente.dart
index e914490ab1..42cbee288a 100644
--- a/mobile/apps/photos/lib/ui/offline/empty/on_ente.dart
+++ b/mobile/apps/photos/lib/ui/offline/empty/on_ente.dart
@@ -20,38 +20,42 @@ class EmptyOnEnteSection extends StatelessWidget {
return Padding(
padding: const EdgeInsets.all(12),
child: Container(
- height: 156,
- width: double.infinity,
padding: const EdgeInsets.symmetric(vertical: 24),
decoration: BoxDecoration(
- color: colorScheme.backgroundElevated,
+ color: colorScheme.backgroundColour,
borderRadius: BorderRadius.circular(20),
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
- Text(
- l10n.offlineEnableBackupTitle,
- textAlign: TextAlign.center,
- style: TextStyle(
- fontFamily: "Nunito",
- fontWeight: FontWeight.w800,
- fontSize: 16,
- height: 20 / 16,
- letterSpacing: -1.0,
- color: colorScheme.textBase,
+ ConstrainedBox(
+ constraints: const BoxConstraints(maxWidth: 200),
+ child: Text(
+ l10n.offlineEnableBackupTitle,
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ fontFamily: "Nunito",
+ fontWeight: FontWeight.w800,
+ fontSize: 16,
+ height: 20 / 16,
+ letterSpacing: -1.0,
+ color: colorScheme.textBase,
+ ),
),
),
const SizedBox(height: 8),
- Text(
- l10n.offlineEnableBackupDesc,
- textAlign: TextAlign.center,
- style: TextStyle(
- fontFamily: "Inter",
- fontWeight: FontWeight.w500,
- fontSize: 10,
- height: 16 / 10,
- color: colorScheme.textBase.withValues(alpha: 0.6),
+ ConstrainedBox(
+ constraints: const BoxConstraints(maxWidth: 235),
+ child: Text(
+ l10n.offlineEnableBackupDesc,
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ fontFamily: "Inter",
+ fontWeight: FontWeight.w500,
+ fontSize: 10,
+ height: 16 / 10,
+ color: colorScheme.textBase.withValues(alpha: 0.6),
+ ),
),
),
const SizedBox(height: 16),
@@ -64,12 +68,12 @@ class EmptyOnEnteSection extends StatelessWidget {
);
},
child: Container(
- height: 36,
decoration: BoxDecoration(
- color: getEnteColorScheme(context).greenBase,
+ color: colorScheme.greenBase,
borderRadius: BorderRadius.circular(12),
),
- alignment: Alignment.center,
+ padding:
+ const EdgeInsets.symmetric(horizontal: 24, vertical: 18),
child: const Text(
"Start with 10 GB FREE",
style: TextStyle(