mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Add note explaining shadow opacity
pass ColourProvider in from test, instead of hard coding it in `FooterButtonV2.cs`
This commit is contained in:
parent
61584ba63c
commit
be52d0a60c
@ -36,8 +36,8 @@ namespace osu.Game.Screens.Select.FooterV2
|
|||||||
|
|
||||||
protected static readonly Vector2 SHEAR = new Vector2(SHEAR_WIDTH / button_height, 0);
|
protected static readonly Vector2 SHEAR = new Vector2(SHEAR_WIDTH / button_height, 0);
|
||||||
|
|
||||||
[Cached]
|
[Resolved]
|
||||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Aquamarine);
|
private OverlayColourProvider colourProvider { get; set; } = null!;
|
||||||
|
|
||||||
private Colour4 buttonAccentColour;
|
private Colour4 buttonAccentColour;
|
||||||
|
|
||||||
@ -74,7 +74,8 @@ namespace osu.Game.Screens.Select.FooterV2
|
|||||||
{
|
{
|
||||||
Type = EdgeEffectType.Shadow,
|
Type = EdgeEffectType.Shadow,
|
||||||
Radius = 5,
|
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;
|
Shear = SHEAR;
|
||||||
Size = new Vector2(button_width, button_height);
|
Size = new Vector2(button_width, button_height);
|
||||||
|
Loading…
Reference in New Issue
Block a user