mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 06:27:24 +09:00
add CreateBorder method in markdown table cell
This commit is contained in:
parent
d92e593ddd
commit
22677cfeaf
@ -24,12 +24,9 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OverlayColourProvider colourProvider)
|
||||
private void load()
|
||||
{
|
||||
if (isHeading)
|
||||
AddInternal(new TableHeadBorder());
|
||||
else
|
||||
AddInternal(new TableBodyBorder());
|
||||
AddInternal(CreateBorder(isHeading));
|
||||
}
|
||||
|
||||
public override MarkdownTextFlowContainer CreateTextFlow() => new TableCellTextFlowContainer
|
||||
@ -38,6 +35,14 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
Padding = new MarginPadding(10),
|
||||
};
|
||||
|
||||
protected virtual Box CreateBorder(bool isHeading)
|
||||
{
|
||||
if (isHeading)
|
||||
return new TableHeadBorder();
|
||||
|
||||
return new TableBodyBorder();
|
||||
}
|
||||
|
||||
private class TableHeadBorder : Box
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
|
Loading…
x
Reference in New Issue
Block a user