styling updates to ios

This commit is contained in:
Kyle Spearrin 2016-06-14 00:19:18 -04:00
parent f8f004a798
commit 4ba721b314
11 changed files with 20 additions and 11 deletions

View File

@ -59,7 +59,8 @@ namespace Bit.App.Controls
Text = button1Text,
HorizontalOptions = LayoutOptions.End,
VerticalOptions = LayoutOptions.Center,
Margin = new Thickness(0)
Margin = new Thickness(0),
TextColor = Color.FromHex("3c8dbc")
};
buttonStackLayout.Children.Add(Button1);
@ -72,7 +73,8 @@ namespace Bit.App.Controls
Text = button2Text,
HorizontalOptions = LayoutOptions.End,
VerticalOptions = LayoutOptions.Center,
Margin = new Thickness(0)
Margin = new Thickness(0),
TextColor = Color.FromHex("3c8dbc")
};
buttonStackLayout.Children.Add(Button2);

View File

@ -19,6 +19,14 @@ namespace Bit.iOS.Extension
public Context Context { get; set; }
public override void ViewWillAppear(bool animated)
{
UINavigationBar.Appearance.ShadowImage = new UIImage();
UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default);
base.ViewWillAppear(animated);
}
public override void ViewDidLoad()
{
base.ViewDidLoad();

View File

@ -54,6 +54,9 @@ namespace Bit.iOS
Resolver.Resolve<IFingerprint>(),
Resolver.Resolve<ISettings>()));
UINavigationBar.Appearance.ShadowImage = new UIImage();
UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default);
return base.FinishedLaunching(app, options);
}

View File

@ -1,6 +1,7 @@
using System;
using Bit.App.Controls;
using Bit.iOS.Controls;
using Foundation;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
@ -19,6 +20,10 @@ namespace Bit.iOS.Controls
TabBar.TintColor = page.TintColor.ToUIColor();
TabBar.BarTintColor = page.BarTintColor.ToUIColor();
TabBar.BackgroundColor = page.BackgroundColor.ToUIColor();
// remove top border
// ref: http://stackoverflow.com/questions/14371343/ios-uitabbar-remove-top-shadow-gradient-line
TabBar.SetValueForKeyPath(FromObject(true), new NSString("_hidesShadow"));
}
public override void ViewWillAppear(bool animated)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 595 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

After

Width:  |  Height:  |  Size: 137 B

View File

@ -264,15 +264,6 @@
<ItemGroup>
<BundleResource Include="Resources\fa-lock%403x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\ion_chevron_right.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\ion_chevron_right%402x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\ion_chevron_right%403x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\Icon-120.png" />
</ItemGroup>