mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 12:22:57 +08:00
Replace all hardcoded 50 horizontal padding with const
This commit is contained in:
parent
7a0edabd5d
commit
af389b1107
@ -116,7 +116,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Direction = FillDirection.Vertical,
|
||||
Padding = new MarginPadding { Horizontal = 50 },
|
||||
Padding = new MarginPadding { Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING },
|
||||
Margin = new MarginPadding { Vertical = 20 },
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ namespace osu.Game.Overlays.Changelog
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = 20,
|
||||
Horizontal = 50,
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
};
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ namespace osu.Game.Overlays.Changelog
|
||||
Direction = FillDirection.Vertical,
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
Padding = new MarginPadding { Right = 50 + image_container_width },
|
||||
Padding = new MarginPadding { Right = WaveOverlayContainer.HORIZONTAL_PADDING + image_container_width },
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
|
@ -99,7 +99,7 @@ namespace osu.Game.Overlays.Comments
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Padding = new MarginPadding { Horizontal = 50, Vertical = 20 },
|
||||
Padding = new MarginPadding { Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING, Vertical = 20 },
|
||||
Children = new Drawable[]
|
||||
{
|
||||
avatar = new UpdateableAvatar(api.LocalUser.Value)
|
||||
@ -393,7 +393,7 @@ namespace osu.Game.Overlays.Comments
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
Margin = new MarginPadding { Left = 50 },
|
||||
Margin = new MarginPadding { Left = WaveOverlayContainer.HORIZONTAL_PADDING },
|
||||
Text = CommentsStrings.Empty
|
||||
}
|
||||
});
|
||||
|
@ -41,7 +41,7 @@ namespace osu.Game.Overlays.Comments
|
||||
new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Padding = new MarginPadding { Horizontal = 50 },
|
||||
Padding = new MarginPadding { Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING },
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OverlaySortTabControl<CommentsSortCriteria>
|
||||
|
@ -32,7 +32,7 @@ namespace osu.Game.Overlays.Comments
|
||||
Origin = Anchor.CentreLeft,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FillDirection.Horizontal,
|
||||
Margin = new MarginPadding { Left = 50 },
|
||||
Margin = new MarginPadding { Left = WaveOverlayContainer.HORIZONTAL_PADDING },
|
||||
Spacing = new Vector2(5, 0),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
@ -129,7 +129,7 @@ namespace osu.Game.Overlays.Dashboard.Friends
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Padding = new MarginPadding { Horizontal = 50 }
|
||||
Padding = new MarginPadding { Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING }
|
||||
},
|
||||
loading = new LoadingLayer(true)
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ namespace osu.Game.Overlays.News.Displays
|
||||
{
|
||||
Vertical = 20,
|
||||
Left = 30,
|
||||
Right = 50
|
||||
Right = WaveOverlayContainer.HORIZONTAL_PADDING
|
||||
};
|
||||
|
||||
InternalChild = new FillFlowContainer
|
||||
|
@ -89,7 +89,7 @@ namespace osu.Game.Overlays
|
||||
}
|
||||
});
|
||||
|
||||
ContentSidePadding = 50;
|
||||
ContentSidePadding = WaveOverlayContainer.HORIZONTAL_PADDING;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
@ -55,7 +55,7 @@ namespace osu.Game.Overlays
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = 20,
|
||||
Left = 50,
|
||||
Left = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
Right = 30
|
||||
},
|
||||
Child = CreateContent()
|
||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
Origin = Anchor.CentreRight,
|
||||
Width = 200,
|
||||
Height = 6,
|
||||
Margin = new MarginPadding { Right = 50 },
|
||||
Margin = new MarginPadding { Right = WaveOverlayContainer.HORIZONTAL_PADDING },
|
||||
Child = new LevelProgressBar
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
@ -56,7 +56,7 @@ namespace osu.Game.Overlays.Wiki
|
||||
{
|
||||
Vertical = 20,
|
||||
Left = 30,
|
||||
Right = 50,
|
||||
Right = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
},
|
||||
OnAddHeading = sidebar.AddEntry,
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ namespace osu.Game.Overlays
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = 20,
|
||||
Horizontal = 50,
|
||||
Horizontal = HORIZONTAL_PADDING,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user