chore: Login page follow up

This commit is contained in:
krille-chan 2023-07-23 07:42:27 +02:00
parent cc873e77fb
commit 69a98d447a
No known key found for this signature in database
3 changed files with 24 additions and 11 deletions

View file

@ -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": {}
}
}
}

View file

@ -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!),
),

View file

@ -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,
),