mirror of https://github.com/ppy/osu
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 @@ public BeatmapListingSearchControl()
|
|||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = 20,
|
||||
Horizontal = 40,
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
},
|
||||
Child = new FillFlowContainer
|
||||
{
|
||||
|
|
|
@ -93,7 +93,7 @@ private void showBuild(ValueChangedEvent<APIChangelogBuild> e)
|
|||
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 @@ private void load(OverlayColourProvider colourProvider)
|
|||
ShowDeleted = { BindTarget = ShowDeleted },
|
||||
Margin = new MarginPadding
|
||||
{
|
||||
Horizontal = 70,
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
Vertical = 10
|
||||
}
|
||||
},
|
||||
|
|
|
@ -537,7 +537,7 @@ private MarginPadding getPadding(bool isTopLevel)
|
|||
{
|
||||
return new MarginPadding
|
||||
{
|
||||
Horizontal = 70,
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING,
|
||||
Vertical = 15
|
||||
};
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ private void load(OverlayColourProvider colourProvider, IAPIProvider api)
|
|||
Padding = new MarginPadding
|
||||
{
|
||||
Top = 20,
|
||||
Horizontal = 45
|
||||
Horizontal = WaveOverlayContainer.HORIZONTAL_PADDING - FriendsOnlineStatusItem.PADDING
|
||||
},
|
||||
Child = onlineStreamControl = new FriendOnlineStreamControl(),
|
||||
}
|
||||
|
|
|
@ -39,12 +39,14 @@ public bool UserHoveringArea
|
|||
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…
Reference in New Issue