Remove custom colour handling

This commit is contained in:
Dean Herbert 2017-11-26 02:52:55 +09:00
parent ac7e373f40
commit 0c6a125777

View File

@ -4,7 +4,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using OpenTK.Graphics; using OpenTK.Graphics;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
@ -38,11 +37,8 @@ namespace osu.Game.Graphics.UserInterface
public override bool HandleInput => Action != null; public override bool HandleInput => Action != null;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours, AudioManager audio) private void load(OsuColour colours)
{ {
if (Action == null)
Colour = OsuColour.Gray(0.5f);
BackgroundColour = colours.BlueDark; BackgroundColour = colours.BlueDark;
Content.Masking = true; Content.Masking = true;