mirror of
https://github.com/bitwarden/android.git
synced 2024-12-21 08:42:39 +03:00
header updates
This commit is contained in:
parent
38b7509fbb
commit
3e14f4a19c
1 changed files with 8 additions and 22 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue