1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-01 04:52:55 +08:00

Replace all hardcoded 50 horizontal padding with const

This commit is contained in:
Joseph Madamba 2023-04-02 17:12:27 -07:00
parent 7a0edabd5d
commit af389b1107
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76
12 changed files with 14 additions and 14 deletions

View File

@ -116,7 +116,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
Padding = new MarginPadding { Horizontal = 50 }, Padding = new MarginPadding { Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING },
Margin = new MarginPadding { Vertical = 20 }, Margin = new MarginPadding { Vertical = 20 },
Children = new Drawable[] Children = new Drawable[]
{ {

View File

@ -34,7 +34,7 @@ namespace osu.Game.Overlays.Changelog
Padding = new MarginPadding Padding = new MarginPadding
{ {
Vertical = 20, Vertical = 20,
Horizontal = 50, Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING,
}; };
} }
@ -79,7 +79,7 @@ namespace osu.Game.Overlays.Changelog
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = 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[] Children = new Drawable[]
{ {
new OsuSpriteText new OsuSpriteText

View File

@ -99,7 +99,7 @@ namespace osu.Game.Overlays.Comments
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Horizontal = 50, Vertical = 20 }, Padding = new MarginPadding { Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING, Vertical = 20 },
Children = new Drawable[] Children = new Drawable[]
{ {
avatar = new UpdateableAvatar(api.LocalUser.Value) avatar = new UpdateableAvatar(api.LocalUser.Value)
@ -393,7 +393,7 @@ namespace osu.Game.Overlays.Comments
{ {
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Margin = new MarginPadding { Left = 50 }, Margin = new MarginPadding { Left = WaveOverlayContainer.HORIZONTAL_PADDING },
Text = CommentsStrings.Empty Text = CommentsStrings.Empty
} }
}); });

View File

@ -41,7 +41,7 @@ namespace osu.Game.Overlays.Comments
new Container new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = 50 }, Padding = new MarginPadding { Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING },
Children = new Drawable[] Children = new Drawable[]
{ {
new OverlaySortTabControl<CommentsSortCriteria> new OverlaySortTabControl<CommentsSortCriteria>

View File

@ -32,7 +32,7 @@ namespace osu.Game.Overlays.Comments
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal, Direction = FillDirection.Horizontal,
Margin = new MarginPadding { Left = 50 }, Margin = new MarginPadding { Left = WaveOverlayContainer.HORIZONTAL_PADDING },
Spacing = new Vector2(5, 0), Spacing = new Vector2(5, 0),
Children = new Drawable[] Children = new Drawable[]
{ {

View File

@ -129,7 +129,7 @@ namespace osu.Game.Overlays.Dashboard.Friends
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Horizontal = 50 } Padding = new MarginPadding { Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING }
}, },
loading = new LoadingLayer(true) loading = new LoadingLayer(true)
} }

View File

@ -43,7 +43,7 @@ namespace osu.Game.Overlays.News.Displays
{ {
Vertical = 20, Vertical = 20,
Left = 30, Left = 30,
Right = 50 Right = WaveOverlayContainer.HORIZONTAL_PADDING
}; };
InternalChild = new FillFlowContainer InternalChild = new FillFlowContainer

View File

@ -89,7 +89,7 @@ namespace osu.Game.Overlays
} }
}); });
ContentSidePadding = 50; ContentSidePadding = WaveOverlayContainer.HORIZONTAL_PADDING;
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]

View File

@ -55,7 +55,7 @@ namespace osu.Game.Overlays
Padding = new MarginPadding Padding = new MarginPadding
{ {
Vertical = 20, Vertical = 20,
Left = 50, Left = WaveOverlayContainer.HORIZONTAL_PADDING,
Right = 30 Right = 30
}, },
Child = CreateContent() Child = CreateContent()

View File

@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Profile.Header
Origin = Anchor.CentreRight, Origin = Anchor.CentreRight,
Width = 200, Width = 200,
Height = 6, Height = 6,
Margin = new MarginPadding { Right = 50 }, Margin = new MarginPadding { Right = WaveOverlayContainer.HORIZONTAL_PADDING },
Child = new LevelProgressBar Child = new LevelProgressBar
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,

View File

@ -56,7 +56,7 @@ namespace osu.Game.Overlays.Wiki
{ {
Vertical = 20, Vertical = 20,
Left = 30, Left = 30,
Right = 50, Right = WaveOverlayContainer.HORIZONTAL_PADDING,
}, },
OnAddHeading = sidebar.AddEntry, OnAddHeading = sidebar.AddEntry,
} }

View File

@ -145,7 +145,7 @@ namespace osu.Game.Overlays
Padding = new MarginPadding Padding = new MarginPadding
{ {
Vertical = 20, Vertical = 20,
Horizontal = 50, Horizontal = HORIZONTAL_PADDING,
}, },
}); });
} }