mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:12:57 +08:00
Remove explicit padding on icon
This commit is contained in:
parent
f329b1ed72
commit
33654ee5b4
@ -246,35 +246,43 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
TooltipText = statistic.Name;
|
TooltipText = statistic.Name;
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
Padding = new MarginPadding { Left = 16 };
|
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new SpriteIcon
|
new Container
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Colour = OsuColour.FromHex(@"441288"),
|
Origin = Anchor.CentreLeft,
|
||||||
Icon = FontAwesome.fa_square,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Rotation = 45,
|
|
||||||
Size = new Vector2(20),
|
|
||||||
},
|
|
||||||
new SpriteIcon
|
|
||||||
{
|
|
||||||
Anchor = Anchor.CentreLeft,
|
|
||||||
Colour = OsuColour.FromHex(@"f7dd55"),
|
|
||||||
Icon = statistic.Icon,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Scale = new Vector2(0.8f),
|
|
||||||
Size = new Vector2(20),
|
Size = new Vector2(20),
|
||||||
|
Children = new[]
|
||||||
|
{
|
||||||
|
new SpriteIcon
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Colour = OsuColour.FromHex(@"441288"),
|
||||||
|
Icon = FontAwesome.fa_square,
|
||||||
|
Rotation = 45,
|
||||||
|
},
|
||||||
|
new SpriteIcon
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Scale = new Vector2(0.8f),
|
||||||
|
Colour = OsuColour.FromHex(@"f7dd55"),
|
||||||
|
Icon = statistic.Icon,
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.CentreLeft,
|
||||||
Colour = new Color4(255, 221, 85, 255),
|
Colour = new Color4(255, 221, 85, 255),
|
||||||
Font = @"Exo2.0-Bold",
|
Font = @"Exo2.0-Bold",
|
||||||
Margin = new MarginPadding { Left = 13 },
|
Margin = new MarginPadding { Left = 30 },
|
||||||
Origin = Anchor.CentreLeft,
|
|
||||||
Text = statistic.Content,
|
Text = statistic.Content,
|
||||||
TextSize = 17,
|
TextSize = 17,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user