Adjust header content margin

This commit is contained in:
Andrei Zavatski 2020-04-16 12:07:38 +03:00
parent 894598eb22
commit eb86be0a6d
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,8 @@ namespace osu.Game.Overlays
{
public abstract class OverlayHeader : Container
{
public const int CONTENT_X_MARGIN = 50;
private readonly Box titleBackground;
protected readonly FillFlowContainer HeaderInfo;
@ -54,7 +56,7 @@ protected OverlayHeader()
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding
{
Horizontal = UserProfileOverlay.CONTENT_X_MARGIN,
Horizontal = CONTENT_X_MARGIN,
},
Children = new[]
{

View File

@ -44,7 +44,7 @@ protected TabControlOverlayHeader()
},
TabControl = CreateTabControl().With(control =>
{
control.Margin = new MarginPadding { Left = UserProfileOverlay.CONTENT_X_MARGIN };
control.Margin = new MarginPadding { Left = CONTENT_X_MARGIN };
control.Current = Current;
})
}