mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:35:05 +08:00
Fix padding mismatches
This commit is contained in:
parent
5c7ff363ce
commit
e17f224793
@ -75,9 +75,9 @@ namespace osu.Game.Overlays.Mods
|
||||
},
|
||||
new Container
|
||||
{
|
||||
Margin = new MarginPadding
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = DifficultyMultiplierDisplay.HEIGHT + 10,
|
||||
Top = DifficultyMultiplierDisplay.HEIGHT + PADDING,
|
||||
},
|
||||
Depth = float.MaxValue,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
@ -116,7 +116,7 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Origin = Anchor.BottomLeft,
|
||||
Margin = new MarginPadding { Vertical = 14, Left = 70 },
|
||||
Margin = new MarginPadding { Vertical = PADDING, Left = 70 },
|
||||
Text = "Mod Customisation",
|
||||
Active = { BindTarget = customisationVisible }
|
||||
});
|
||||
|
@ -16,6 +16,8 @@ namespace osu.Game.Overlays.Mods
|
||||
/// </summary>
|
||||
public abstract class ShearedOverlayContainer : OsuFocusedOverlayContainer
|
||||
{
|
||||
protected const float PADDING = 14;
|
||||
|
||||
[Cached]
|
||||
protected readonly OverlayColourProvider ColourProvider;
|
||||
|
||||
@ -81,7 +83,7 @@ namespace osu.Game.Overlays.Mods
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Top = ShearedOverlayHeader.HEIGHT,
|
||||
Bottom = footer_height,
|
||||
Bottom = footer_height + PADDING,
|
||||
}
|
||||
},
|
||||
Footer = new Container
|
||||
@ -89,7 +91,7 @@ namespace osu.Game.Overlays.Mods
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Depth = float.MinValue,
|
||||
Height = footer_height,
|
||||
Margin = new MarginPadding { Top = 10 },
|
||||
Margin = new MarginPadding { Top = PADDING },
|
||||
Anchor = Anchor.BottomCentre,
|
||||
Origin = Anchor.BottomCentre,
|
||||
Children = new Drawable[]
|
||||
|
Loading…
Reference in New Issue
Block a user