mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
add corner radius and padding
This commit is contained in:
parent
5108dadfbc
commit
b4dd935538
@ -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,
|
||||||
|
};
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user