add corner radius and padding

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-06-01 14:14:12 +07:00
parent 5108dadfbc
commit b4dd935538
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -37,6 +37,8 @@ namespace osu.Game.Graphics.Containers.Markdown
private void load(OverlayColourProvider colourProvider) private void load(OverlayColourProvider colourProvider)
{ {
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
CornerRadius = 4;
Masking = true;
Children = new Drawable[] Children = new Drawable[]
{ {
new Box new Box
@ -48,6 +50,11 @@ namespace osu.Game.Graphics.Containers.Markdown
{ {
t.Colour = colourProvider.Light1; t.Colour = colourProvider.Light1;
t.Text = Text; t.Text = Text;
t.Padding = new MarginPadding
{
Vertical = 1,
Horizontal = 4,
};
}), }),
}; };
} }