diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 8001d821..95d05f2c 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -2476,5 +2476,12 @@ "report": "report", "signInWithPassword": "Sign in with password", "continueWith": "Continue with:", - "pleaseTryAgainLaterOrChooseDifferentServer": "Please try again later or choose a different server." + "pleaseTryAgainLaterOrChooseDifferentServer": "Please try again later or choose a different server.", + "signInWith": "Sign in with {provider}", + "@signInWith": { + "type": "text", + "placeholders": { + "provider": {} + } + } } diff --git a/lib/pages/homeserver_picker/homeserver_picker_view.dart b/lib/pages/homeserver_picker/homeserver_picker_view.dart index e847c519..0c8337e8 100644 --- a/lib/pages/homeserver_picker/homeserver_picker_view.dart +++ b/lib/pages/homeserver_picker/homeserver_picker_view.dart @@ -55,13 +55,15 @@ class HomeserverPickerView extends StatelessWidget { ? const Center(child: CircularProgressIndicator.adaptive()) : ListView( children: [ - if (FluffyThemes.isColumnMode(context)) - Image.asset( - 'assets/info-logo.png', - height: 96, - ) - else - Image.asset('assets/banner_transparent.png'), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: FluffyThemes.isColumnMode(context) + ? Image.asset( + 'assets/info-logo.png', + height: 96, + ) + : Image.asset('assets/banner_transparent.png'), + ), const SizedBox(height: 12), if (errorText != null) ...[ const Center( @@ -114,8 +116,11 @@ class HomeserverPickerView extends StatelessWidget { height: 24, ), ), - label: - 'Sign in with ${provider.name ?? provider.brand ?? L10n.of(context)!.singlesignon}', + label: L10n.of(context)!.signInWith( + provider.name ?? + provider.brand ?? + L10n.of(context)!.singlesignon, + ), onPressed: () => controller.ssoLoginAction(provider.id!), ), diff --git a/lib/widgets/layouts/login_scaffold.dart b/lib/widgets/layouts/login_scaffold.dart index f1ee1d8b..54dc5d53 100644 --- a/lib/widgets/layouts/login_scaffold.dart +++ b/lib/widgets/layouts/login_scaffold.dart @@ -40,7 +40,8 @@ class LoginScaffold extends StatelessWidget { body: body, bottomNavigationBar: isMobileMode ? Material( - color: Theme.of(context).colorScheme.onInverseSurface, + elevation: 4, + shadowColor: Theme.of(context).colorScheme.onBackground, child: const _PrivacyButtons( mainAxisAlignment: MainAxisAlignment.center, ),