mirror of
https://github.com/bitwarden/android.git
synced 2024-12-30 04:48:30 +03:00
Added fingerprint icon to unlock page
This commit is contained in:
parent
ceef61e841
commit
ef77ccd189
6 changed files with 24 additions and 4 deletions
|
@ -31,6 +31,14 @@ namespace Bit.App.Pages
|
||||||
|
|
||||||
public void Init()
|
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
|
var fingerprintButton = new Button
|
||||||
{
|
{
|
||||||
Text = "Use Fingerprint to Unlock",
|
Text = "Use Fingerprint to Unlock",
|
||||||
|
@ -47,9 +55,12 @@ namespace Bit.App.Pages
|
||||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"]
|
Style = (Style)Application.Current.Resources["btn-primaryAccent"]
|
||||||
};
|
};
|
||||||
|
|
||||||
var stackLayout = new StackLayout { Padding = new Thickness(30, 40), Spacing = 10 };
|
var stackLayout = new StackLayout
|
||||||
stackLayout.Children.Add(fingerprintButton);
|
{
|
||||||
stackLayout.Children.Add(logoutButton);
|
Padding = new Thickness(30, 40),
|
||||||
|
Spacing = 10,
|
||||||
|
Children = { fingerprintIcon, fingerprintButton, logoutButton }
|
||||||
|
};
|
||||||
|
|
||||||
Title = "Verify Fingerprint";
|
Title = "Verify Fingerprint";
|
||||||
Content = stackLayout;
|
Content = stackLayout;
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace Bit.App.Pages
|
||||||
new TableSection("Icons")
|
new TableSection("Icons")
|
||||||
{
|
{
|
||||||
new CustomViewCell(@"Tools by Alex Auda Samora from the Noun Project
|
new CustomViewCell(@"Tools by Alex Auda Samora from the Noun Project
|
||||||
")
|
Fingerprint by masterpage.com from the Noun Project")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
BIN
src/iOS/Resources/fingerprint.png
Normal file
BIN
src/iOS/Resources/fingerprint.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
src/iOS/Resources/fingerprint@2x.png
Normal file
BIN
src/iOS/Resources/fingerprint@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
BIN
src/iOS/Resources/fingerprint@3x.png
Normal file
BIN
src/iOS/Resources/fingerprint@3x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -550,6 +550,15 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<BundleResource Include="Resources\folder%403x.png" />
|
<BundleResource Include="Resources\folder%403x.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BundleResource Include="Resources\fingerprint.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BundleResource Include="Resources\fingerprint%402x.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BundleResource Include="Resources\fingerprint%403x.png" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||||
<Import Project="..\..\packages\Xamarin.Forms.2.3.0.107\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.3.0.107\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" />
|
<Import Project="..\..\packages\Xamarin.Forms.2.3.0.107\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.3.0.107\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" />
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
|
|
Loading…
Reference in a new issue