1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +08:00

Adjust metrics of OverallRanking

This commit is contained in:
Dean Herbert 2023-07-07 18:16:09 +09:00
parent 98bf15182e
commit 7637a9e603
2 changed files with 21 additions and 6 deletions

View File

@ -39,7 +39,7 @@ namespace osu.Game.Screens.Ranking.Statistics.User
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical,
Spacing = new Vector2(10),
Spacing = new Vector2(5),
Children = new Drawable[]
{
new GlobalRankChangeRow { StatisticsUpdate = { BindTarget = StatisticsUpdate } },

View File

@ -6,6 +6,7 @@ using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Localisation;
using osu.Game.Graphics;
@ -46,7 +47,7 @@ namespace osu.Game.Screens.Ranking.Statistics.User
new OsuSpriteText
{
Text = Label,
Font = OsuFont.Default.With(size: 18)
Font = OsuFont.Default.With(size: 14)
},
new FillFlowContainer
{
@ -65,17 +66,31 @@ namespace osu.Game.Screens.Ranking.Statistics.User
Spacing = new Vector2(5),
Children = new Drawable[]
{
changeIcon = new SpriteIcon
new Container
{
Size = new Vector2(14),
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Size = new Vector2(18)
Children = new Drawable[]
{
new Circle
{
RelativeSizeAxes = Axes.Both,
Colour = colours.Gray1
},
changeIcon = new SpriteIcon
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(10),
},
}
},
currentValueText = new OsuSpriteText
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Font = OsuFont.Default.With(size: 18, weight: FontWeight.Bold)
Font = OsuFont.Default.With(size: 14, weight: FontWeight.Bold)
},
}
},
@ -123,7 +138,7 @@ namespace osu.Game.Screens.Ranking.Statistics.User
}
else
{
comparisonColour = colours.Orange1;
comparisonColour = colours.Gray4;
icon = FontAwesome.Solid.Minus;
}