mirror of
https://github.com/ppy/osu
synced 2025-02-18 11:26:57 +00:00
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 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[]
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user