chore: Login page follow up

pull/465/head
krille-chan 2 years ago
parent cc873e77fb
commit 69a98d447a
No known key found for this signature in database

@ -2476,5 +2476,12 @@
"report": "report", "report": "report",
"signInWithPassword": "Sign in with password", "signInWithPassword": "Sign in with password",
"continueWith": "Continue with:", "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": {}
}
}
} }

@ -55,13 +55,15 @@ class HomeserverPickerView extends StatelessWidget {
? const Center(child: CircularProgressIndicator.adaptive()) ? const Center(child: CircularProgressIndicator.adaptive())
: ListView( : ListView(
children: [ children: [
if (FluffyThemes.isColumnMode(context)) Padding(
Image.asset( padding: const EdgeInsets.symmetric(horizontal: 8.0),
'assets/info-logo.png', child: FluffyThemes.isColumnMode(context)
height: 96, ? Image.asset(
) 'assets/info-logo.png',
else height: 96,
Image.asset('assets/banner_transparent.png'), )
: Image.asset('assets/banner_transparent.png'),
),
const SizedBox(height: 12), const SizedBox(height: 12),
if (errorText != null) ...[ if (errorText != null) ...[
const Center( const Center(
@ -114,8 +116,11 @@ class HomeserverPickerView extends StatelessWidget {
height: 24, height: 24,
), ),
), ),
label: label: L10n.of(context)!.signInWith(
'Sign in with ${provider.name ?? provider.brand ?? L10n.of(context)!.singlesignon}', provider.name ??
provider.brand ??
L10n.of(context)!.singlesignon,
),
onPressed: () => onPressed: () =>
controller.ssoLoginAction(provider.id!), controller.ssoLoginAction(provider.id!),
), ),

@ -40,7 +40,8 @@ class LoginScaffold extends StatelessWidget {
body: body, body: body,
bottomNavigationBar: isMobileMode bottomNavigationBar: isMobileMode
? Material( ? Material(
color: Theme.of(context).colorScheme.onInverseSurface, elevation: 4,
shadowColor: Theme.of(context).colorScheme.onBackground,
child: const _PrivacyButtons( child: const _PrivacyButtons(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
), ),

Loading…
Cancel
Save