1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:03:11 +08:00

Add default status colour

This commit is contained in:
Dean Herbert 2017-07-13 14:55:19 +09:00
parent b13e8599f1
commit 03e4b2a599

View File

@ -169,7 +169,7 @@ namespace osu.Game.Users
private void load(OsuColour colours, UserProfileOverlay profile)
{
Status.ValueChanged += displayStatus;
Status.ValueChanged += status => statusBg.FadeColour(status.GetAppropriateColour(colours), 500, EasingTypes.OutQuint);
Status.ValueChanged += status => statusBg.FadeColour(status?.GetAppropriateColour(colours) ?? colours.Gray5, 500, EasingTypes.OutQuint);
base.Action = () =>
{