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

View File

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