1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 11:03:22 +08:00

Remove dark border and update cover gradient

This commit is contained in:
Joseph Madamba 2024-04-28 23:12:55 -07:00
parent 4c4621eb58
commit 32df6991ad

View File

@ -66,7 +66,6 @@ namespace osu.Game.Online.Leaderboards
private Colour4 foregroundColour; private Colour4 foregroundColour;
private Colour4 backgroundColour; private Colour4 backgroundColour;
private Colour4 shadowColour;
private ColourInfo totalScoreBackgroundGradient; private ColourInfo totalScoreBackgroundGradient;
private static readonly Vector2 shear = new Vector2(0.15f, 0); private static readonly Vector2 shear = new Vector2(0.15f, 0);
@ -127,7 +126,6 @@ namespace osu.Game.Online.Leaderboards
foregroundColour = isPersonalBest ? colourProvider.Background1 : colourProvider.Background5; foregroundColour = isPersonalBest ? colourProvider.Background1 : colourProvider.Background5;
backgroundColour = isPersonalBest ? colourProvider.Background2 : colourProvider.Background4; backgroundColour = isPersonalBest ? colourProvider.Background2 : colourProvider.Background4;
shadowColour = isPersonalBest ? colourProvider.Background3 : colourProvider.Background6;
totalScoreBackgroundGradient = ColourInfo.GradientHorizontal(backgroundColour.Opacity(0), backgroundColour); totalScoreBackgroundGradient = ColourInfo.GradientHorizontal(backgroundColour.Opacity(0), backgroundColour);
statisticsLabels = GetStatistics(score).Select(s => new ScoreComponentLabel(s, score) statisticsLabels = GetStatistics(score).Select(s => new ScoreComponentLabel(s, score)
@ -179,22 +177,6 @@ namespace osu.Game.Online.Leaderboards
private Container createCentreContent(APIUser user) => new Container private Container createCentreContent(APIUser user) => new Container
{ {
Name = @"Centre container", Name = @"Centre container",
Masking = true,
CornerRadius = corner_radius,
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = shadowColour,
},
new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Right = 5 },
Child = new Container
{
Masking = true, Masking = true,
CornerRadius = corner_radius, CornerRadius = corner_radius,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
@ -212,7 +194,7 @@ namespace osu.Game.Online.Leaderboards
Shear = -shear, Shear = -shear,
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Colour = ColourInfo.GradientHorizontal(Colour4.White.Opacity(0.5f), Colour4.White.Opacity(0)), Colour = ColourInfo.GradientHorizontal(Colour4.White.Opacity(0.5f), Colour4.FromHex(@"222A27").Opacity(1)),
}, },
new GridContainer new GridContainer
{ {
@ -306,9 +288,6 @@ namespace osu.Game.Online.Leaderboards
} }
} }
} }
}
}
}
}, },
}, },
}, },