Update light background handling to Color4.Yellow instead

Confirmed to be the way forward in
https://github.com/ppy/osu-web/pull/7855#issuecomment-880959644.
This commit is contained in:
Salman Ahmed 2021-07-16 01:59:32 +03:00
parent 6c9ed16b0c
commit 19d54ee751

View File

@ -86,13 +86,8 @@ namespace osu.Game.Beatmaps.Drawables
background.Colour = colours.ForStarDifficulty(c.NewValue.Stars);
starIcon.Colour = c.NewValue.Stars >= 7.5
? colourProvider?.Content1 ?? Color4.White
: colourProvider?.Background5 ?? Color4Extensions.FromHex("303d47");
starsText.Colour = c.NewValue.Stars >= 7.5
? colourProvider?.Content1 ?? Color4.White.Opacity(0.75f)
: colourProvider?.Background5 ?? Color4.Black.Opacity(0.75f);
starIcon.Colour = c.NewValue.Stars >= 6.5 ? Color4.Yellow : colourProvider?.Background5 ?? Color4Extensions.FromHex("303d47");
starsText.Colour = c.NewValue.Stars >= 6.5 ? Color4.Yellow : colourProvider?.Background5 ?? Color4.Black.Opacity(0.75f);
}, true);
}
}