Add a gradient over the cover in Header.

This commit is contained in:
DrabWeb
2018-05-29 01:53:45 -03:00
parent c8ce34b6d4
commit 77ff0640c2

View File

@ -4,6 +4,7 @@
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Input;
@ -39,12 +40,16 @@ namespace osu.Game.Screens.Multi.Screens.Match
Children = new Drawable[]
{
// todo: gradient over the cover
cover = new UpdateableBeatmapSetCover
{
RelativeSizeAxes = Axes.Both,
Masking = true,
},
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = ColourInfo.GradientVertical(Color4.Black.Opacity(0), Color4.Black.Opacity(0.5f)),
},
tabStrip = new Box
{
Anchor = Anchor.BottomLeft,