1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

Fix existing alpha transform cleared on accent colour change

Clearing it causes its start value to be lost.
This commit is contained in:
Salman Ahmed 2022-10-20 01:16:27 +03:00
parent aca0d04834
commit 1852714d2d

View File

@ -114,9 +114,8 @@ namespace osu.Game.Rulesets.Osu.Skinning.Argon
{
// A colour transform is applied.
// Without removing transforms first, when it is rewound it may apply an old colour.
outerGradient.ClearTransforms();
outerGradient.ClearTransforms(targetMember: nameof(Colour));
outerGradient.Colour = ColourInfo.GradientVertical(colour.NewValue, colour.NewValue.Darken(0.1f));
outerFill.Colour = innerFill.Colour = colour.NewValue.Darken(4);
innerGradient.Colour = ColourInfo.GradientVertical(colour.NewValue.Darken(0.5f), colour.NewValue.Darken(0.6f));
flash.Colour = colour.NewValue;