1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-28 22:23:35 +00:00

support dark theme logos

This commit is contained in:
Kyle Spearrin
2019-09-30 16:52:20 -04:00
parent b6747a63ed
commit b92f3abbaf
3 changed files with 10 additions and 6 deletions

View File

@@ -189,9 +189,7 @@ namespace Bit.iOS
BackgroundColor = ((Color)Xamarin.Forms.Application.Current.Resources["SplashBackgroundColor"])
.ToUIColor()
};
var theme = ThemeManager.GetTheme(false);
var darkbasedTheme = theme == "dark" || theme == "black" || theme == "nord";
var logo = new UIImage(darkbasedTheme ? "logo_white.png" : "logo.png");
var logo = new UIImage(!ThemeManager.UsingLightTheme ? "logo_white.png" : "logo.png");
var imageView = new UIImageView(logo)
{
Center = new CoreGraphics.CGPoint(view.Center.X, view.Center.Y - 30)