mirror of
https://github.com/ppy/osu.git
synced 2025-03-10 15:37:20 +08:00
Merge pull request #32108 from peppy/adjust-leaderboard-design-slightly
Adjust leaderboard score design slightly
This commit is contained in:
commit
31aded6971
@ -271,6 +271,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
|
Spacing = new Vector2(-10, 0),
|
||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
ChildrenEnumerable = Score.Mods.AsOrdered().Select(mod => new ModIcon(mod) { Scale = new Vector2(0.34f) })
|
ChildrenEnumerable = Score.Mods.AsOrdered().Select(mod => new ModIcon(mod) { Scale = new Vector2(0.34f) })
|
||||||
},
|
},
|
||||||
@ -394,7 +395,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Text = statistic.Value,
|
Text = statistic.Value,
|
||||||
Spacing = new Vector2(-1, 0),
|
Spacing = new Vector2(-1, 0),
|
||||||
Font = OsuFont.GetFont(size: 14, weight: FontWeight.Bold, fixedWidth: true)
|
Font = OsuFont.GetFont(size: 16, weight: FontWeight.Bold, fixedWidth: true)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -425,7 +426,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
public DateLabel(DateTimeOffset date)
|
public DateLabel(DateTimeOffset date)
|
||||||
: base(date)
|
: base(date)
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: 13, weight: FontWeight.Bold, italics: true);
|
Font = OsuFont.GetFont(size: 16, weight: FontWeight.Bold);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override string Format() => Date.ToShortRelativeTime(TimeSpan.FromSeconds(30));
|
protected override string Format() => Date.ToShortRelativeTime(TimeSpan.FromSeconds(30));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user