header updates

This commit is contained in:
Kyle Spearrin 2016-05-24 20:14:37 -04:00
parent 38b7509fbb
commit 3e14f4a19c

View file

@ -193,7 +193,8 @@ namespace Bit.App.Pages
{ {
TextColor = Color.FromHex("777777"), TextColor = Color.FromHex("777777"),
VerticalTextAlignment = TextAlignment.Center, VerticalTextAlignment = TextAlignment.Center,
VerticalOptions = LayoutOptions.CenterAndExpand VerticalOptions = LayoutOptions.CenterAndExpand,
FontSize = 14
}; };
label.SetBinding<VaultListPageModel.Folder>(Label.TextProperty, s => s.Name); label.SetBinding<VaultListPageModel.Folder>(Label.TextProperty, s => s.Name);
@ -201,28 +202,13 @@ namespace Bit.App.Pages
var stackLayout = new StackLayout var stackLayout = new StackLayout
{ {
Orientation = StackOrientation.Horizontal, Orientation = StackOrientation.Horizontal,
VerticalOptions = LayoutOptions.CenterAndExpand VerticalOptions = LayoutOptions.FillAndExpand,
Children = { image, label },
BackgroundColor = Color.FromHex("ecf0f5")
}; };
stackLayout.Children.Add(image); View = stackLayout;
stackLayout.Children.Add(label); Height = 30;
var borderedStackLayout = new StackLayout
{
Spacing = 0,
BackgroundColor = Color.FromHex("ecf0f5"),
HorizontalOptions = LayoutOptions.FillAndExpand
};
borderedStackLayout.Children.Add(new BoxView { BackgroundColor = Color.FromHex("d2d6de"), HeightRequest = 0.5, VerticalOptions = LayoutOptions.Start });
borderedStackLayout.Children.Add(stackLayout);
if(Device.OS == TargetPlatform.iOS)
{
borderedStackLayout.Children.Add(new BoxView { BackgroundColor = Color.FromHex("d2d6de"), HeightRequest = 0.5, VerticalOptions = LayoutOptions.End });
}
View = borderedStackLayout;
Height = 35;
} }
} }
} }