1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00

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)
{
AutoSizeAxes = Axes.Both;
CornerRadius = 4;
Masking = true;
Children = new Drawable[]
{
new Box
@ -48,6 +50,11 @@ namespace osu.Game.Graphics.Containers.Markdown
{
t.Colour = colourProvider.Light1;
t.Text = Text;
t.Padding = new MarginPadding
{
Vertical = 1,
Horizontal = 4,
};
}),
};
}