1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +08:00

Adjust profile scores to closer match osu-web

This commit is contained in:
recapitalverb 2020-02-02 17:52:34 +07:00 committed by GitHub
parent ed48e3014c
commit 52aae68411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,8 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
public class DrawableProfileScore : CompositeDrawable
{
private const int performance_width = 80;
private const int content_padding = 10;
private const int content_padding_left = 10;
private const int content_padding_right = 30;
protected readonly ScoreInfo Score;
@ -51,7 +52,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Left = content_padding, Right = performance_width + content_padding },
Padding = new MarginPadding { Left = content_padding_left, Right = performance_width + content_padding_right },
Children = new Drawable[]
{
new FillFlowContainer
@ -142,17 +143,21 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
{
new Box
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Both,
Size = new Vector2(1, 0.5f),
Size = new Vector2(1.06f, 0.5f),
Colour = Color4.Black.Opacity(0.5f),
Shear = new Vector2(-0.45f, 0),
EdgeSmoothness = new Vector2(2, 0),
},
new Box
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Both,
RelativePositionAxes = Axes.Y,
Size = new Vector2(1, -0.5f),
Size = new Vector2(1.06f, -0.5f),
Position = new Vector2(0, 1),
Colour = Color4.Black.Opacity(0.5f),
Shear = new Vector2(0.45f, 0),