Apply the expected font to the checkbox's label

This commit is contained in:
Dean Herbert 2021-02-04 16:58:15 +09:00
parent b32e10514d
commit daf7ab9422

View File

@ -3,8 +3,11 @@
using System;
using System.Linq;
using System.Reflection.Emit;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.Mods;
using osu.Game.Rulesets.Mods;
@ -120,6 +123,19 @@ namespace osu.Game.Screens.OnlinePlay
protected override bool PlaySoundsOnUserChange => false;
public HeaderCheckbox()
: base(false)
{
}
protected override void ApplyLabelParameters(SpriteText text)
{
base.ApplyLabelParameters(text);
text.Font = OsuFont.GetFont(weight: FontWeight.Bold);
}
protected override void OnUserChange(bool value)
{
base.OnUserChange(value);