1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-09 20:13:18 +00:00

revert back to default ios bar color. Added new Add Site view controller for extension (WIP)

This commit is contained in:
Kyle Spearrin
2016-07-07 20:53:01 -04:00
parent e7c78f6efa
commit 135f323372
10 changed files with 328 additions and 17 deletions

View File

@@ -18,12 +18,14 @@ namespace Bit.iOS.Controls
var page = (ExtendedTabbedPage)Element;
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"));
if(page.NoBorder)
{
// 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)