Adjust font sizes and spacing in BeatmapSetOverlay

This commit is contained in:
TheWildTree
2020-02-16 21:43:33 +01:00
parent 8fcd5e93dd
commit 4d180a685a
18 changed files with 102 additions and 97 deletions

View File

@ -51,7 +51,6 @@ namespace osu.Game.Screens.Select.Details
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Spacing = new Vector2(4f),
Children = new[]
{
FirstValue = new StatisticRow(), //circle size/key amount
@ -199,6 +198,7 @@ namespace osu.Game.Screens.Select.Details
this.forceDecimalPlaces = forceDecimalPlaces;
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Padding = new MarginPadding { Vertical = 2.5f };
Children = new Drawable[]
{
@ -206,9 +206,11 @@ namespace osu.Game.Screens.Select.Details
{
Width = name_width,
AutoSizeAxes = Axes.Y,
// osu-web uses 1.25 line-height, which at 12px font size makes the element 14px tall - this compentates that difference
Padding = new MarginPadding { Vertical = 1 },
Child = name = new OsuSpriteText
{
Font = OsuFont.GetFont(size: 13)
Font = OsuFont.GetFont(size: 12)
},
},
bar = new Bar
@ -239,7 +241,7 @@ namespace osu.Game.Screens.Select.Details
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Font = OsuFont.GetFont(size: 13)
Font = OsuFont.GetFont(size: 12)
},
},
};