1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 19:53:23 +08:00

Use colour constant rather than opacity helper function

This commit is contained in:
Dean Herbert 2019-09-13 14:06:19 +09:00
parent b917f29cfe
commit 0e679fb468

View File

@ -8,7 +8,6 @@ using osuTK;
using osu.Framework.Graphics.Shapes;
using osuTK.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Extensions.Color4Extensions;
namespace osu.Game.Graphics.UserInterface
{
@ -66,7 +65,7 @@ namespace osu.Game.Graphics.UserInterface
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = ColourInfo.GradientHorizontal(Color4.White.Opacity(0), Color4.White)
Colour = ColourInfo.GradientHorizontal(Color4.Transparent, Color4.White)
},
new Box
{
@ -75,7 +74,7 @@ namespace osu.Game.Graphics.UserInterface
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = ColourInfo.GradientHorizontal(Color4.White, Color4.White.Opacity(0))
Colour = ColourInfo.GradientHorizontal(Color4.White, Color4.Transparent)
},
}
};