1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:15:45 +08:00

Minor alignment adjustments

This commit is contained in:
dekrain 2022-02-01 06:45:59 +01:00
parent db973fb348
commit c2b775c0a3
No known key found for this signature in database
GPG Key ID: E20077A4AB510334

View File

@ -199,7 +199,8 @@ namespace osu.Game.Online.Leaderboards
[BackgroundDependencyLoader]
private void load()
{
InternalChild = new FillFlowContainer
FillFlowContainer container;
InternalChild = container = new FillFlowContainer
{
Height = 15,
AutoSizeAxes = Axes.X,
@ -209,16 +210,25 @@ namespace osu.Game.Online.Leaderboards
{
new ModIcon(Mod, showTooltip: false).With(icon =>
{
icon.Origin = Anchor.CentreLeft;
icon.Anchor = Anchor.CentreLeft;
icon.Scale = new Vector2(15f / icon.Height);
}),
new OsuSpriteText
{
RelativeSizeAxes = Axes.Y,
Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold),
Text = Mod.SettingDescription,
}
}
};
string description = Mod.SettingDescription;
if (!string.IsNullOrEmpty(description))
{
container.Add(new OsuSpriteText
{
RelativeSizeAxes = Axes.Y,
Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold),
Text = Mod.SettingDescription,
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
});
}
}
}
}