mirror of
https://github.com/ppy/osu.git
synced 2025-03-17 22:17:25 +08:00
Replace other hardcoded horizontal padding with const
- Also add overlay stream item padding const and account for it
This commit is contained in:
parent
af389b1107
commit
436f1e4ae4
@ -107,7 +107,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = 20,
|
||||
Horizontal = 40,
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
},
|
||||
Child = new FillFlowContainer
|
||||
{
|
||||
|
@ -93,7 +93,7 @@ namespace osu.Game.Overlays.Changelog
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Horizontal = 65,
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING - ChangelogUpdateStreamItem.PADDING,
|
||||
Vertical = 20
|
||||
},
|
||||
Child = Streams = new ChangelogUpdateStreamControl { Current = currentStream },
|
||||
|
@ -152,7 +152,7 @@ namespace osu.Game.Overlays.Comments
|
||||
ShowDeleted = { BindTarget = ShowDeleted },
|
||||
Margin = new MarginPadding
|
||||
{
|
||||
Horizontal = 70,
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
Vertical = 10
|
||||
}
|
||||
},
|
||||
|
@ -537,7 +537,7 @@ namespace osu.Game.Overlays.Comments
|
||||
{
|
||||
return new MarginPadding
|
||||
{
|
||||
Horizontal = 70,
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
Vertical = 15
|
||||
};
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ namespace osu.Game.Overlays.Dashboard.Friends
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Top = 20,
|
||||
Horizontal = 45
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING - FriendsOnlineStatusItem.PADDING
|
||||
},
|
||||
Child = onlineStreamControl = new FriendOnlineStreamControl(),
|
||||
}
|
||||
|
@ -39,12 +39,14 @@ namespace osu.Game.Overlays
|
||||
private FillFlowContainer<SpriteText> text;
|
||||
private ExpandingBar expandingBar;
|
||||
|
||||
public const float PADDING = 5;
|
||||
|
||||
protected OverlayStreamItem(T value)
|
||||
: base(value)
|
||||
{
|
||||
Height = 50;
|
||||
Width = 90;
|
||||
Margin = new MarginPadding(5);
|
||||
Margin = new MarginPadding(PADDING);
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
Loading…
x
Reference in New Issue
Block a user