Skip to content

Commit

Permalink
Add note explaining shadow opacity
Browse files Browse the repository at this point in the history
pass ColourProvider in from test, instead of hard coding it in `FooterButtonV2.cs`
  • Loading branch information
mk56-spn committed Feb 13, 2023
1 parent 61584ba commit be52d0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions osu.Game/Screens/Select/FooterV2/FooterButtonV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public partial class FooterButtonV2 : OsuClickableContainer, IKeyBindingHandler<

protected static readonly Vector2 SHEAR = new Vector2(SHEAR_WIDTH / button_height, 0);

[Cached]
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Aquamarine);
[Resolved]
private OverlayColourProvider colourProvider { get; set; } = null!;

private Colour4 buttonAccentColour;

Expand Down Expand Up @@ -74,7 +74,8 @@ public FooterButtonV2()
{
Type = EdgeEffectType.Shadow,
Radius = 5,
Colour = Colour4.Black.Opacity(0.5f)
// Figma says 50% opacity, but it does not match up visually if taken at face value, and looks bad.
Colour = Colour4.Black.Opacity(0.25f)
};
Shear = SHEAR;
Size = new Vector2(button_width, button_height);
Expand Down

0 comments on commit be52d0a

Please sign in to comment.