Merge pull request #176 from Tom94/simpler-gradient

Use gradient helper function to create toolbar tooltip gradient.
This commit is contained in:
Dean Herbert
2016-11-16 11:18:31 +09:00
committed by GitHub
2 changed files with 2 additions and 7 deletions

View File

@ -72,12 +72,7 @@ namespace osu.Game.Overlays
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
Alpha = 0, Alpha = 0,
Height = 90, Height = 90,
ColourInfo = new ColourInfo { ColourInfo = ColourInfo.GradientVertical(new Color4(0.1f, 0.1f, 0.1f, 0.5f), new Color4(0.1f, 0.1f, 0.1f, 0f)),
TopLeft = new Color4(0.1f, 0.1f, 0.1f, 0.5f),
TopRight = new Color4(0.1f, 0.1f, 0.1f, 0.5f),
BottomLeft = new Color4(0.1f, 0.1f, 0.1f, 0f),
BottomRight = new Color4(0.1f, 0.1f, 0.1f, 0f),
},
}, },
new FlowContainer new FlowContainer
{ {