mirror of https://github.com/ppy/osu
Adjust header content margin
This commit is contained in:
parent
894598eb22
commit
eb86be0a6d
|
@ -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[]
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue