mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Move team colours to OsuColour
This commit is contained in:
parent
aa6abb3e33
commit
e08b1223ab
@ -26,8 +26,8 @@ namespace osu.Game.Tournament
|
|||||||
{
|
{
|
||||||
public static ColourInfo GetTeamColour(TeamColour teamColour) => teamColour == TeamColour.Red ? COLOUR_RED : COLOUR_BLUE;
|
public static ColourInfo GetTeamColour(TeamColour teamColour) => teamColour == TeamColour.Red ? COLOUR_RED : COLOUR_BLUE;
|
||||||
|
|
||||||
public static readonly Color4 COLOUR_RED = Color4Extensions.FromHex("#AA1414");
|
public static readonly Color4 COLOUR_RED = new OsuColour().TeamColourRed;
|
||||||
public static readonly Color4 COLOUR_BLUE = Color4Extensions.FromHex("#1462AA");
|
public static readonly Color4 COLOUR_BLUE = new OsuColour().TeamColourBlue;
|
||||||
|
|
||||||
public static readonly Color4 ELEMENT_BACKGROUND_COLOUR = Color4Extensions.FromHex("#fff");
|
public static readonly Color4 ELEMENT_BACKGROUND_COLOUR = Color4Extensions.FromHex("#fff");
|
||||||
public static readonly Color4 ELEMENT_FOREGROUND_COLOUR = Color4Extensions.FromHex("#000");
|
public static readonly Color4 ELEMENT_FOREGROUND_COLOUR = Color4Extensions.FromHex("#000");
|
||||||
|
@ -130,6 +130,9 @@ namespace osu.Game.Graphics
|
|||||||
return Gray(brightness > 0.5f ? 0.2f : 0.9f);
|
return Gray(brightness > 0.5f ? 0.2f : 0.9f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public readonly Color4 TeamColourRed = Color4Extensions.FromHex("#AA1414");
|
||||||
|
public readonly Color4 TeamColourBlue = Color4Extensions.FromHex("#1462AA");
|
||||||
|
|
||||||
// See https://github.com/ppy/osu-web/blob/master/resources/assets/less/colors.less
|
// See https://github.com/ppy/osu-web/blob/master/resources/assets/less/colors.less
|
||||||
public readonly Color4 PurpleLighter = Color4Extensions.FromHex(@"eeeeff");
|
public readonly Color4 PurpleLighter = Color4Extensions.FromHex(@"eeeeff");
|
||||||
public readonly Color4 PurpleLight = Color4Extensions.FromHex(@"aa88ff");
|
public readonly Color4 PurpleLight = Color4Extensions.FromHex(@"aa88ff");
|
||||||
|
Loading…
Reference in New Issue
Block a user