Skip to content

Commit 4c2ebdb

Browse files
committed
Simplify accent colour assignment in argon wedge piece
1 parent 59df9cb commit 4c2ebdb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

osu.Game/Screens/Play/HUD/ArgonWedgePiece.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ private void load()
4141
InternalChild = new Box
4242
{
4343
RelativeSizeAxes = Axes.Both,
44-
Colour = ColourInfo.GradientVertical(AccentColour.Value.Opacity(0.0f), AccentColour.Value.Opacity(0.25f)),
4544
};
4645
}
4746

@@ -50,7 +49,7 @@ protected override void LoadComplete()
5049
base.LoadComplete();
5150

5251
InvertShear.BindValueChanged(v => Shear = new Vector2(0.8f, 0f) * (v.NewValue ? -1 : 1), true);
53-
AccentColour.BindValueChanged(c => InternalChild.Colour = ColourInfo.GradientVertical(AccentColour.Value.Opacity(0.0f), AccentColour.Value.Opacity(0.25f)));
52+
AccentColour.BindValueChanged(c => InternalChild.Colour = ColourInfo.GradientVertical(AccentColour.Value.Opacity(0.0f), AccentColour.Value.Opacity(0.25f)), true);
5453
}
5554
}
5655
}

0 commit comments

Comments
 (0)