Refactor OsuColour into injected instance class

Which should allow you to change the color palette in the future for
skinning purposes.
This commit is contained in:
Drew DeVault
2017-01-12 23:49:05 -05:00
parent fa007e632d
commit f5f545df62
12 changed files with 248 additions and 210 deletions

View File

@ -3,6 +3,7 @@
using System;
using OpenTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Graphics.UserInterface;
namespace osu.Game.Graphics.UserInterface
@ -12,7 +13,12 @@ namespace osu.Game.Graphics.UserInterface
public OsuButton()
{
Height = 25;
Colour = OsuColour.BlueDark;
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Colour = colours.BlueDark;
}
}
}