mirror of
https://github.com/bitwarden/mobile
synced 2026-01-02 00:23:15 +00:00
Added fingerprint icon to unlock page
This commit is contained in:
@@ -31,6 +31,14 @@ namespace Bit.App.Pages
|
||||
|
||||
public void Init()
|
||||
{
|
||||
var fingerprintIcon = new Button
|
||||
{
|
||||
Image = "fingerprint",
|
||||
BackgroundColor = Color.Transparent,
|
||||
Command = new Command(async () => await CheckFingerprintAsync()),
|
||||
VerticalOptions = LayoutOptions.CenterAndExpand
|
||||
};
|
||||
|
||||
var fingerprintButton = new Button
|
||||
{
|
||||
Text = "Use Fingerprint to Unlock",
|
||||
@@ -47,9 +55,12 @@ namespace Bit.App.Pages
|
||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"]
|
||||
};
|
||||
|
||||
var stackLayout = new StackLayout { Padding = new Thickness(30, 40), Spacing = 10 };
|
||||
stackLayout.Children.Add(fingerprintButton);
|
||||
stackLayout.Children.Add(logoutButton);
|
||||
var stackLayout = new StackLayout
|
||||
{
|
||||
Padding = new Thickness(30, 40),
|
||||
Spacing = 10,
|
||||
Children = { fingerprintIcon, fingerprintButton, logoutButton }
|
||||
};
|
||||
|
||||
Title = "Verify Fingerprint";
|
||||
Content = stackLayout;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Bit.App.Pages
|
||||
new TableSection("Icons")
|
||||
{
|
||||
new CustomViewCell(@"Tools by Alex Auda Samora from the Noun Project
|
||||
")
|
||||
Fingerprint by masterpage.com from the Noun Project")
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user