1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-27 03:52:57 +02:00

style stweaks

This commit is contained in:
Kyle Spearrin 2019-05-02 12:46:08 -04:00
parent 2ca066327a
commit 9195bdcf95
2 changed files with 11 additions and 4 deletions

View File

@ -7,6 +7,7 @@ namespace Bit.App.Pages
public class BaseContentPage : ContentPage
{
protected int AndroidShowModalAnimationDelay = 400;
protected int AndroidShowPageAnimationDelay = 100;
protected void SetActivityIndicator()
{
@ -28,14 +29,14 @@ namespace Bit.App.Pages
Content = viewToSet;
}
}
if(!fromModal || Device.RuntimePlatform == Device.iOS)
if(Device.RuntimePlatform == Device.iOS)
{
await DoWorkAsync();
return;
}
await Task.Run(async () =>
{
await Task.Delay(AndroidShowModalAnimationDelay);
await Task.Delay(fromModal ? AndroidShowModalAnimationDelay : AndroidShowPageAnimationDelay);
Device.BeginInvokeOnMainThread(async () => await DoWorkAsync());
});
}

View File

@ -12,7 +12,8 @@
Value="{StaticResource TextColor}" />
</Style>
<Style TargetType="Label"
Class="text-default">
Class="text-default"
x:Key="text-default">
<Setter Property="TextColor"
Value="{StaticResource TextColor}" />
</Style>
@ -22,7 +23,8 @@
Value="{StaticResource MutedColor}" />
</Style>
<Style TargetType="Label"
Class="text-danger">
Class="text-danger"
x:Key="text-danger">
<Setter Property="TextColor"
Value="{StaticResource DangerColor}" />
</Style>
@ -84,6 +86,8 @@
</Style>
<Style TargetType="Label"
Class="list-header-sub">
<Setter Property="FontSize"
Value="Small" />
<Setter Property="HorizontalTextAlignment"
Value="End" />
<Setter Property="VerticalTextAlignment"
@ -110,6 +114,8 @@
</Style>
<Style TargetType="Label"
Class="list-sub">
<Setter Property="FontSize"
Value="Small" />
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
</Style>