splash screen bg colors and white logo

This commit is contained in:
Kyle Spearrin 2019-06-26 09:35:18 -04:00
parent 14f3f99218
commit b72808ab40
9 changed files with 23 additions and 4 deletions

View File

@ -15,6 +15,7 @@
<Color x:Key="InputPlaceholderColor">#707070</Color>
<Color x:Key="BackgroundColor">#000000</Color>
<Color x:Key="SplashBackgroundColor">#000000</Color>
<Color x:Key="BorderColor">#282828</Color>
<Color x:Key="DisabledIconColor">#c7c7cd</Color>

View File

@ -15,6 +15,7 @@
<Color x:Key="InputPlaceholderColor">#707070</Color>
<Color x:Key="BackgroundColor">#303030</Color>
<Color x:Key="SplashBackgroundColor">#222222</Color>
<Color x:Key="BorderColor">#191919</Color>
<Color x:Key="DisabledIconColor">#c7c7cd</Color>

View File

@ -15,6 +15,7 @@
<Color x:Key="InputPlaceholderColor">#d0d0d0</Color>
<Color x:Key="BackgroundColor">#ffffff</Color>
<Color x:Key="SplashBackgroundColor">#efeff4</Color>
<Color x:Key="BorderColor">#dddddd</Color>
<Color x:Key="DisabledIconColor">#c7c7cd</Color>

View File

@ -15,6 +15,7 @@
<Color x:Key="InputPlaceholderColor">#7b88a1</Color>
<Color x:Key="BackgroundColor">#3b4252</Color>
<Color x:Key="SplashBackgroundColor">#2e3440</Color>
<Color x:Key="BorderColor">#2e3440</Color>
<Color x:Key="DisabledIconColor">#d8dee9</Color>

View File

@ -17,6 +17,8 @@ using CoreNFC;
using Foundation;
using HockeyApp.iOS;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
namespace Bit.iOS
{
@ -58,7 +60,7 @@ namespace Bit.iOS
}
else if(message.Command == "cancelLockTimer")
{
}
else if(message.Command == "updatedTheme")
{
@ -87,7 +89,7 @@ namespace Bit.iOS
var success = data["successfully"] as bool?;
if(success.GetValueOrDefault())
{
}
}
}
@ -116,9 +118,13 @@ namespace Bit.iOS
};
var backgroundView = new UIView(UIApplication.SharedApplication.KeyWindow.Frame)
{
BackgroundColor = new UIColor(red: 0.93f, green: 0.94f, blue: 0.96f, alpha: 1.0f)
BackgroundColor = ((Color)Xamarin.Forms.Application.Current.Resources["SplashBackgroundColor"])
.ToUIColor()
};
var imageView = new UIImageView(new UIImage("logo.png"))
var theme = ThemeManager.GetTheme(false);
var darkbasedTheme = theme == "dark" || theme == "black" || theme == "nord";
var logo = new UIImage(darkbasedTheme ? "logo_white.png" : "logo.png");
var imageView = new UIImageView(logo)
{
Center = new CoreGraphics.CGPoint(view.Center.X, view.Center.Y - 30)
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -358,4 +358,13 @@
<ItemGroup>
<BundleResource Include="Resources\more_vert%402x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\logo_white.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\logo_white%402x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\logo_white%403x.png" />
</ItemGroup>
</Project>