mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:42:57 +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:
parent
aca0d04834
commit
1852714d2d
@ -114,9 +114,8 @@ namespace osu.Game.Rulesets.Osu.Skinning.Argon
|
|||||||
{
|
{
|
||||||
// A colour transform is applied.
|
// A colour transform is applied.
|
||||||
// Without removing transforms first, when it is rewound it may apply an old colour.
|
// 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));
|
outerGradient.Colour = ColourInfo.GradientVertical(colour.NewValue, colour.NewValue.Darken(0.1f));
|
||||||
|
|
||||||
outerFill.Colour = innerFill.Colour = colour.NewValue.Darken(4);
|
outerFill.Colour = innerFill.Colour = colour.NewValue.Darken(4);
|
||||||
innerGradient.Colour = ColourInfo.GradientVertical(colour.NewValue.Darken(0.5f), colour.NewValue.Darken(0.6f));
|
innerGradient.Colour = ColourInfo.GradientVertical(colour.NewValue.Darken(0.5f), colour.NewValue.Darken(0.6f));
|
||||||
flash.Colour = colour.NewValue;
|
flash.Colour = colour.NewValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user