π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update accent color and polish onboarding/empty state UI
Prateek Sunal264ad6961be5
diff --git a/mobile/apps/auth/lib/onboarding/view/onboarding_page.dart b/mobile/apps/auth/lib/onboarding/view/onboarding_page.dartindex 880b732c07..6cd5f34ca9 100644--- a/mobile/apps/auth/lib/onboarding/view/onboarding_page.dart+++ b/mobile/apps/auth/lib/onboarding/view/onboarding_page.dart@@ -161,49 +161,48 @@ class _OnboardingPageState extends State<OnboardingPage> {child: Row(children: [Expanded(- child: ElevatedButton(- style: ElevatedButton.styleFrom(- backgroundColor: const Color(0xFFb97dff),- foregroundColor: accentColor,- elevation: 0,+ child: GestureDetector(+ onTap: _navigateToSignUpPage,+ child: Container(padding: const EdgeInsets.symmetric(vertical: 18,),- minimumSize: const Size(56, 56),- shape: RoundedRectangleBorder(+ decoration: BoxDecoration(+ color: Colors.white.withValues(alpha: 0.2),borderRadius: BorderRadius.circular(20),),- ),- onPressed: _navigateToSignUpPage,- child: Text(- l10n.signUp,- style: textTheme.body.copyWith(- color: Colors.white,- fontWeight: FontWeight.w600,+ child: Center(+ child: Text(+ l10n.signUp,+ style: textTheme.body.copyWith(+ color: Colors.white,+ fontWeight: FontWeight.w600,+ ),+ ),),),),),const SizedBox(width: 6),Expanded(- child: ElevatedButton(- style: ElevatedButton.styleFrom(- backgroundColor: Colors.white,- foregroundColor: accentColor,+ child: GestureDetector(+ onTap: _navigateToSignInPage,+ child: Container(padding: const EdgeInsets.symmetric(vertical: 18,),- minimumSize: const Size(56, 56),- shape: RoundedRectangleBorder(+ decoration: BoxDecoration(+ color: Colors.white,borderRadius: BorderRadius.circular(20),),- ),- onPressed: _navigateToSignInPage,- child: Text(- l10n.logInLabel,- style: textTheme.body.copyWith(- color: accentColor,- fontWeight: FontWeight.w600,+ child: Center(+ child: Text(+ l10n.logInLabel,+ style: textTheme.body.copyWith(+ color: accentColor,+ fontWeight: FontWeight.w600,+ ),+ ),),),),diff --git a/mobile/apps/auth/lib/theme/colors.dart b/mobile/apps/auth/lib/theme/colors.dartindex 45797ed40a..dc95d2e89a 100644--- a/mobile/apps/auth/lib/theme/colors.dart+++ b/mobile/apps/auth/lib/theme/colors.dart@@ -184,7 +184,7 @@ const EnteColorScheme darkScheme = EnteColorScheme(_pinnedBgColorDark,);-const accentColor = Color(0xFFA75CFF);+const accentColor = Color(0xFF8F33D6);// QR code container backgroundconst Color qrBoxColor = Color.fromRGBO(245, 245, 247, 1);diff --git a/mobile/apps/auth/lib/ui/home/home_empty_state.dart b/mobile/apps/auth/lib/ui/home/home_empty_state.dartindex dc9e69980b..71633b22ee 100644--- a/mobile/apps/auth/lib/ui/home/home_empty_state.dart+++ b/mobile/apps/auth/lib/ui/home/home_empty_state.dart@@ -25,6 +25,10 @@ class HomeEmptyStateWidget extends StatelessWidget {final bgSvgPath = isDarkTheme? 'assets/svg/empty-state-bg-dark.svg': 'assets/svg/empty-state-bg-light.svg';+ final bottomPadding = MediaQuery.of(context).padding.bottom;+ final extraBottomPadding = PlatformUtil.isMobile()+ ? (bottomPadding > 0 ? bottomPadding : 24.0)+ : 24.0;return CustomScrollView(physics: const BouncingScrollPhysics(),@@ -32,7 +36,12 @@ class HomeEmptyStateWidget extends StatelessWidget {SliverFillRemaining(hasScrollBody: false,child: Padding(- padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 24),+ padding: EdgeInsets.only(+ left: 24,+ right: 24,+ top: 24,+ bottom: extraBottomPadding,+ ),child: Column(children: [Expanded(diff --git a/mobile/packages/ui/lib/theme/colors.dart b/mobile/packages/ui/lib/theme/colors.dartindex ddbd19675b..6a4500c9e9 100644--- a/mobile/packages/ui/lib/theme/colors.dart+++ b/mobile/packages/ui/lib/theme/colors.dart@@ -32,13 +32,13 @@ class EnteColorScheme extends ThemeExtension<EnteColorScheme> {final appColors = switch (app) {EnteApp.auth => (primary700: const Color(0xFF722ED1),- primary500: const Color(0xFFA75CFF),+ primary500: const Color(0xFF8F33D6),primary400: const Color(0xFF7A29C1),primary300: const Color(0xFF984DF4),gradientButtonBgColor: const Color(0xFF722ED1),gradientButtonBgColors: const [Color(0xFF722ED1),- Color(0xFFA75CFF),+ Color(0xFF8F33D6),],),EnteApp.locker => (