simplify CreateSpriteText in markdown table cell

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-07 14:38:19 +07:00
parent 3524cb7924
commit 17b8963cf8
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2
1 changed files with 1 additions and 6 deletions

View File

@ -59,12 +59,7 @@ private class TableCellTextFlowContainer : OsuMarkdownTextFlowContainer
{
public FontWeight Weight { get; set; }
protected override SpriteText CreateSpriteText()
{
var spriteText = base.CreateSpriteText();
spriteText.Font = spriteText.Font.With(weight: Weight);
return spriteText;
}
protected override SpriteText CreateSpriteText() => base.CreateSpriteText().With(t => t.Font = t.Font.With(weight: Weight));
}
}
}