mirror of https://github.com/ppy/osu
Merge pull request #1384 from EVAST9919/simplify-letterboxing
Simplify gradient usage in Letterbox Overlay
This commit is contained in:
commit
9eb220af89
|
@ -31,13 +31,7 @@ public LetterboxOverlay()
|
|||
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 @@ public LetterboxOverlay()
|
|||
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),
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue