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

Adjust leaderboard score design slightly

This design is about to get replaced, so I'm just making some minor
adjustments since a lot of people complained about the font size in the
last update.

Of note, I'm only changing the font size which is one pt size lower than
we'd usually use. Also overlapping the mod icons to create a bit more
space (since there's already cases where they don't fit).

Closes https://github.com/ppy/osu/issues/32055 as far as I'm concerned.
I can read everything fine at 0.8x UI scale.
This commit is contained in:
Dean Herbert 2025-02-26 17:01:48 +09:00
parent b3965f0dd0
commit e8b7ec0f95
No known key found for this signature in database

View File

@ -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) })
}, },
@ -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: 14, weight: FontWeight.Bold);
} }
protected override string Format() => Date.ToShortRelativeTime(TimeSpan.FromSeconds(30)); protected override string Format() => Date.ToShortRelativeTime(TimeSpan.FromSeconds(30));