1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-30 06:27:19 +08:00

Adjust font size to match designs

Looks silly when using `12f`, I've added a todo comment so that this specific case does not get forgotten when CSS-compatible font sizing gets supported.

The todo comment may not be 100% required but very unsure about silently changing it and forgetting about it.
This commit is contained in:
Salman Ahmed 2021-08-04 18:17:02 +03:00
parent b2332eb5b3
commit b63d472594

View File

@ -64,7 +64,7 @@ namespace osu.Game.Beatmaps.Drawables
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Margin = new MarginPadding { Right = 26.5f },
Margin = new MarginPadding { Right = 30f },
Icon = FontAwesome.Solid.Star,
Size = new Vector2(8f),
},
@ -72,8 +72,10 @@ namespace osu.Game.Beatmaps.Drawables
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Margin = new MarginPadding { Left = 10f, Bottom = 1.5f },
Font = OsuFont.Torus.With(size: 12f, weight: FontWeight.Bold),
Margin = new MarginPadding { Left = 10f, Bottom = 2f },
// todo: this should be size: 12f, but to match up with the design, it needs to be 14.4f
// see https://github.com/ppy/osu-framework/issues/3271.
Font = OsuFont.Torus.With(size: 14.4f, weight: FontWeight.Bold),
Shadow = false,
}
}