mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 15:12:57 +08:00
Simplify layout of dropdown menu item
This commit is contained in:
parent
af4aeeab09
commit
b27139c2bd
@ -107,7 +107,6 @@ namespace osu.Game.Overlays.Options
|
||||
{
|
||||
ComboBox.CornerRadius = 4;
|
||||
DropDown.CornerRadius = 4;
|
||||
DropDown.Masking = true;
|
||||
}
|
||||
|
||||
protected override void AnimateOpen()
|
||||
@ -181,20 +180,13 @@ namespace osu.Game.Overlays.Options
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Framework.Graphics.Containers.Container
|
||||
new TextAwesome
|
||||
{
|
||||
Width = 20,
|
||||
Height = 20,
|
||||
Margin = new MarginPadding { Top = 1, Right = 3 },
|
||||
Children = new[]
|
||||
{
|
||||
new TextAwesome
|
||||
{
|
||||
Icon = FontAwesome.fa_chevron_right,
|
||||
Colour = Color4.Black,
|
||||
Anchor = Anchor.Centre,
|
||||
}
|
||||
}
|
||||
Icon = FontAwesome.fa_chevron_right,
|
||||
Colour = Color4.Black,
|
||||
Margin = new MarginPadding { Right = 3 },
|
||||
Origin = Anchor.CentreLeft,
|
||||
Anchor = Anchor.CentreLeft,
|
||||
},
|
||||
new SpriteText { Text = text }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user