mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-27 12:26:31 +01:00
splash screen bg colors and white logo
This commit is contained in:
parent
14f3f99218
commit
b72808ab40
@ -15,6 +15,7 @@
|
|||||||
<Color x:Key="InputPlaceholderColor">#707070</Color>
|
<Color x:Key="InputPlaceholderColor">#707070</Color>
|
||||||
|
|
||||||
<Color x:Key="BackgroundColor">#000000</Color>
|
<Color x:Key="BackgroundColor">#000000</Color>
|
||||||
|
<Color x:Key="SplashBackgroundColor">#000000</Color>
|
||||||
<Color x:Key="BorderColor">#282828</Color>
|
<Color x:Key="BorderColor">#282828</Color>
|
||||||
<Color x:Key="DisabledIconColor">#c7c7cd</Color>
|
<Color x:Key="DisabledIconColor">#c7c7cd</Color>
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
<Color x:Key="InputPlaceholderColor">#707070</Color>
|
<Color x:Key="InputPlaceholderColor">#707070</Color>
|
||||||
|
|
||||||
<Color x:Key="BackgroundColor">#303030</Color>
|
<Color x:Key="BackgroundColor">#303030</Color>
|
||||||
|
<Color x:Key="SplashBackgroundColor">#222222</Color>
|
||||||
<Color x:Key="BorderColor">#191919</Color>
|
<Color x:Key="BorderColor">#191919</Color>
|
||||||
<Color x:Key="DisabledIconColor">#c7c7cd</Color>
|
<Color x:Key="DisabledIconColor">#c7c7cd</Color>
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
<Color x:Key="InputPlaceholderColor">#d0d0d0</Color>
|
<Color x:Key="InputPlaceholderColor">#d0d0d0</Color>
|
||||||
|
|
||||||
<Color x:Key="BackgroundColor">#ffffff</Color>
|
<Color x:Key="BackgroundColor">#ffffff</Color>
|
||||||
|
<Color x:Key="SplashBackgroundColor">#efeff4</Color>
|
||||||
<Color x:Key="BorderColor">#dddddd</Color>
|
<Color x:Key="BorderColor">#dddddd</Color>
|
||||||
<Color x:Key="DisabledIconColor">#c7c7cd</Color>
|
<Color x:Key="DisabledIconColor">#c7c7cd</Color>
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
<Color x:Key="InputPlaceholderColor">#7b88a1</Color>
|
<Color x:Key="InputPlaceholderColor">#7b88a1</Color>
|
||||||
|
|
||||||
<Color x:Key="BackgroundColor">#3b4252</Color>
|
<Color x:Key="BackgroundColor">#3b4252</Color>
|
||||||
|
<Color x:Key="SplashBackgroundColor">#2e3440</Color>
|
||||||
<Color x:Key="BorderColor">#2e3440</Color>
|
<Color x:Key="BorderColor">#2e3440</Color>
|
||||||
<Color x:Key="DisabledIconColor">#d8dee9</Color>
|
<Color x:Key="DisabledIconColor">#d8dee9</Color>
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@ using CoreNFC;
|
|||||||
using Foundation;
|
using Foundation;
|
||||||
using HockeyApp.iOS;
|
using HockeyApp.iOS;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
using Xamarin.Forms.Platform.iOS;
|
||||||
|
|
||||||
namespace Bit.iOS
|
namespace Bit.iOS
|
||||||
{
|
{
|
||||||
@ -116,9 +118,13 @@ namespace Bit.iOS
|
|||||||
};
|
};
|
||||||
var backgroundView = new UIView(UIApplication.SharedApplication.KeyWindow.Frame)
|
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)
|
Center = new CoreGraphics.CGPoint(view.Center.X, view.Center.Y - 30)
|
||||||
};
|
};
|
||||||
|
BIN
src/iOS/Resources/logo_white.png
Normal file
BIN
src/iOS/Resources/logo_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
src/iOS/Resources/logo_white@2x.png
Normal file
BIN
src/iOS/Resources/logo_white@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
src/iOS/Resources/logo_white@3x.png
Normal file
BIN
src/iOS/Resources/logo_white@3x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
@ -358,4 +358,13 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<BundleResource Include="Resources\more_vert%402x.png" />
|
<BundleResource Include="Resources\more_vert%402x.png" />
|
||||||
</ItemGroup>
|
</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>
|
</Project>
|
Loading…
Reference in New Issue
Block a user