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

Make font bolder

This commit is contained in:
Dean Herbert 2021-02-02 17:09:59 +09:00
parent 6d9ac4d0f0
commit 40233fb47c

View File

@ -124,7 +124,11 @@ namespace osu.Game.Screens.OnlinePlay
modDisplay.Current.Value = requiredMods.ToArray();
}
protected override Drawable CreateContent() => maskingContainer = new Container
protected override Drawable CreateContent()
{
Action<SpriteText> fontParameters = s => s.Font = OsuFont.Default.With(weight: FontWeight.SemiBold);
return maskingContainer = new Container
{
RelativeSizeAxes = Axes.X,
Height = 50,
@ -165,7 +169,7 @@ namespace osu.Game.Screens.OnlinePlay
Direction = FillDirection.Vertical,
Children = new Drawable[]
{
beatmapText = new LinkFlowContainer { AutoSizeAxes = Axes.Both },
beatmapText = new LinkFlowContainer(fontParameters) { AutoSizeAxes = Axes.Both },
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
@ -180,7 +184,7 @@ namespace osu.Game.Screens.OnlinePlay
Spacing = new Vector2(10f, 0),
Children = new Drawable[]
{
authorText = new LinkFlowContainer { AutoSizeAxes = Axes.Both },
authorText = new LinkFlowContainer(fontParameters) { AutoSizeAxes = Axes.Both },
explicitContentPill = new ExplicitContentBeatmapPill
{
Alpha = 0f,
@ -220,6 +224,7 @@ namespace osu.Game.Screens.OnlinePlay
}
}
};
}
protected virtual IEnumerable<Drawable> CreateButtons() =>
new Drawable[]