1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 23:47:24 +08:00

Merge pull request #1384 from EVAST9919/simplify-letterboxing

Simplify gradient usage in Letterbox Overlay
This commit is contained in:
Dan Balasescu 2017-10-18 11:21:32 +09:00 committed by GitHub
commit 9eb220af89

View File

@ -31,13 +31,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
Child = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = new ColourInfo
{
TopLeft = Color4.Black,
TopRight = Color4.Black,
BottomLeft = transparent_black,
BottomRight = transparent_black,
}
Colour = ColourInfo.GradientVertical(Color4.Black, transparent_black),
}
},
new Container
@ -49,13 +43,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
Child = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = new ColourInfo
{
TopLeft = transparent_black,
TopRight = transparent_black,
BottomLeft = Color4.Black,
BottomRight = Color4.Black,
}
Colour = ColourInfo.GradientVertical(transparent_black, Color4.Black),
}
}
};