Extract to struct, add dictionary term

This commit is contained in:
Dan Balasescu
2022-10-14 14:12:48 +09:00
parent b43bae122c
commit 15db65c037
4 changed files with 202 additions and 174 deletions

View File

@ -527,9 +527,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
Color4 colour = combo.GetComboColour(CurrentSkin);
// Normalise the combo colour to the given brightness level.
colour = OsuColour.ToHSPA(colour);
colour.B = comboColourBrightness.Value;
colour = OsuColour.FromHSPA(colour);
colour = new HSPAColour(colour) { P = comboColourBrightness.Value }.ToColor4();
AccentColour.Value = colour;
}