1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 19:41:06 +08:00

Adjust colours a bit to make hold note bodies more accented

This commit is contained in:
Dean Herbert
2023-03-09 20:42:59 +09:00
Unverified
parent 2ad531f263
commit e12ab165b8
2 changed files with 15 additions and 6 deletions
@@ -58,7 +58,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
AccentColour.BindValueChanged(colour =>
{
background.Colour = colour.NewValue.Darken(1.2f);
background.Colour = colour.NewValue.Darken(0.6f);
foreground.Colour = colour.NewValue.Opacity(0.2f);
}, true);
@@ -21,7 +21,8 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
private readonly IBindable<Color4> accentColour = new Bindable<Color4>();
private readonly Box shadow;
private readonly Box shadeForeground;
private readonly Box foreground;
private readonly Box foregroundAdditive;
public ArgonHoldNoteTailPiece()
{
@@ -55,10 +56,16 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
Masking = true,
Children = new Drawable[]
{
shadeForeground = new Box
foreground = new Box
{
RelativeSizeAxes = Axes.Both,
},
foregroundAdditive = new Box
{
RelativeSizeAxes = Axes.Both,
Blending = BlendingParameters.Additive,
Height = 0.5f,
},
},
},
}
@@ -86,9 +93,11 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
private void onAccentChanged(ValueChangedEvent<Color4> accent)
{
shadeForeground.Colour = ColourInfo.GradientVertical(
accent.NewValue.Darken(0.2f),
accent.NewValue.Darken(1.2f) // matches body
foreground.Colour = accent.NewValue.Darken(0.6f); // matches body
foregroundAdditive.Colour = ColourInfo.GradientVertical(
accent.NewValue.Opacity(0.4f),
accent.NewValue.Opacity(0)
);
}
}