From 2de503d990b47c95f1ba0c053b02ab93a0e9e9d9 Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 18 Oct 2024 09:53:43 +0700 Subject: [PATCH] TF-2387 Update `logo` & `description` for welcome screen --- assets/images/ic_logo_twake_welcome.svg | 48 +++++++++---------- .../twake_welcome/twake_welcome_view.dart | 4 +- .../twake_welcome_view_style.dart | 10 +++- lib/l10n/intl_messages.arb | 2 +- lib/main/localizations/app_localizations.dart | 2 +- 5 files changed, 36 insertions(+), 30 deletions(-) diff --git a/assets/images/ic_logo_twake_welcome.svg b/assets/images/ic_logo_twake_welcome.svg index fbdef6589..2ea42a2b1 100644 --- a/assets/images/ic_logo_twake_welcome.svg +++ b/assets/images/ic_logo_twake_welcome.svg @@ -1,46 +1,46 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - - + + - - + + - + - + - + - + - + diff --git a/lib/features/starting_page/presentation/twake_welcome/twake_welcome_view.dart b/lib/features/starting_page/presentation/twake_welcome/twake_welcome_view.dart index 82df68aef..f7c1f0297 100644 --- a/lib/features/starting_page/presentation/twake_welcome/twake_welcome_view.dart +++ b/lib/features/starting_page/presentation/twake_welcome/twake_welcome_view.dart @@ -27,8 +27,7 @@ class TwakeWelcomeView extends GetWidget { padding: const EdgeInsetsDirectional.only(bottom: 16), child: SvgPicture.asset( controller.imagePaths.icLogoTwakeWelcome, - width: TwakeWelcomeViewStyle.logoWidth, - height: TwakeWelcomeViewStyle.logoHeight, + fit: BoxFit.fill, ), ), focusColor: Colors.transparent, @@ -44,6 +43,7 @@ class TwakeWelcomeView extends GetWidget { : null, useCompanyServerTitle: AppLocalizations.of(context).useCompanyServer, description: AppLocalizations.of(context).descriptionWelcomeTo, + descriptionTextStyle: TwakeWelcomeViewStyle.descriptionTextStyle, privacyPolicy: AppLocalizations.of(context).privacyPolicy, descriptionPrivacyPolicy: AppLocalizations.of(context).byContinuingYouAreAgreeingToOur, onPrivacyPolicyOnTap: controller.onClickPrivacyPolicy, diff --git a/lib/features/starting_page/presentation/twake_welcome/twake_welcome_view_style.dart b/lib/features/starting_page/presentation/twake_welcome/twake_welcome_view_style.dart index 910987e6b..8de175e13 100644 --- a/lib/features/starting_page/presentation/twake_welcome/twake_welcome_view_style.dart +++ b/lib/features/starting_page/presentation/twake_welcome/twake_welcome_view_style.dart @@ -1,4 +1,10 @@ +import 'package:flutter/material.dart'; +import 'package:linagora_design_flutter/linagora_design_flutter.dart'; + class TwakeWelcomeViewStyle { - static const double logoWidth = 205; - static const double logoHeight = 147; + static final TextStyle descriptionTextStyle = TextStyle( + fontSize: 14, + fontWeight: FontWeight.w500, + color: LinagoraSysColors.material().onSurface + ); } diff --git a/lib/l10n/intl_messages.arb b/lib/l10n/intl_messages.arb index 07e62d999..d170139a1 100644 --- a/lib/l10n/intl_messages.arb +++ b/lib/l10n/intl_messages.arb @@ -4042,7 +4042,7 @@ "placeholders_order": [], "placeholders": {} }, - "descriptionWelcomeTo": "End-to-end encryption, collaborative\n features for secure and efficient\n teamwork", + "descriptionWelcomeTo": "The new Open Source standard for secure professional e-mail", "@descriptionWelcomeTo": { "type": "text", "placeholders_order": [], diff --git a/lib/main/localizations/app_localizations.dart b/lib/main/localizations/app_localizations.dart index d6a36648e..4ba963de5 100644 --- a/lib/main/localizations/app_localizations.dart +++ b/lib/main/localizations/app_localizations.dart @@ -4241,7 +4241,7 @@ class AppLocalizations { String get descriptionWelcomeTo { return Intl.message( - 'End-to-end encryption, collaborative\n features for secure and efficient\n teamwork', + 'The new Open Source standard for\n secure professional e-mail', name: 'descriptionWelcomeTo', ); }