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
1 changed files with 2 additions and 14 deletions

View File

@ -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),
}
}
};