mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
header adjustments
This commit is contained in:
parent
083003d34f
commit
219c81aac5
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
using Xamarin.Forms;
|
using Bit.App.Utilities;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
|
||||||
namespace Bit.App.Controls
|
namespace Bit.App.Controls
|
||||||
{
|
{
|
||||||
|
@ -18,7 +19,7 @@ namespace Bit.App.Controls
|
||||||
|
|
||||||
var stackLayout = new StackLayout
|
var stackLayout = new StackLayout
|
||||||
{
|
{
|
||||||
Padding = padding ?? new Thickness(16, 8),
|
Padding = padding ?? new Thickness(16, Helpers.OnPlatform(5, 8, 8, 8)),
|
||||||
Children = { label },
|
Children = { label },
|
||||||
Orientation = StackOrientation.Horizontal
|
Orientation = StackOrientation.Horizontal
|
||||||
};
|
};
|
||||||
|
@ -30,7 +31,8 @@ namespace Bit.App.Controls
|
||||||
LineBreakMode = LineBreakMode.NoWrap,
|
LineBreakMode = LineBreakMode.NoWrap,
|
||||||
FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)),
|
FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)),
|
||||||
Style = (Style)Application.Current.Resources["text-muted"],
|
Style = (Style)Application.Current.Resources["text-muted"],
|
||||||
HorizontalOptions = LayoutOptions.End
|
HorizontalOptions = LayoutOptions.End,
|
||||||
|
VerticalTextAlignment = TextAlignment.Center
|
||||||
};
|
};
|
||||||
countLabel.SetBinding(Label.TextProperty, countBindingName);
|
countLabel.SetBinding(Label.TextProperty, countBindingName);
|
||||||
stackLayout.Children.Add(countLabel);
|
stackLayout.Children.Add(countLabel);
|
||||||
|
|
Loading…
Reference in a new issue