mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 15:23:14 +08:00
simplify CreateSpriteText in markdown table cell
This commit is contained in:
parent
3524cb7924
commit
17b8963cf8
@ -59,12 +59,7 @@ namespace osu.Game.Graphics.Containers.Markdown
|
|||||||
{
|
{
|
||||||
public FontWeight Weight { get; set; }
|
public FontWeight Weight { get; set; }
|
||||||
|
|
||||||
protected override SpriteText CreateSpriteText()
|
protected override SpriteText CreateSpriteText() => base.CreateSpriteText().With(t => t.Font = t.Font.With(weight: Weight));
|
||||||
{
|
|
||||||
var spriteText = base.CreateSpriteText();
|
|
||||||
spriteText.Font = spriteText.Font.With(weight: Weight);
|
|
||||||
return spriteText;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user