mirror of
https://github.com/ppy/osu
synced 2025-02-17 10:57:03 +00:00
Reduce complexity of icon container nesting
This commit is contained in:
parent
b5ea26f2fa
commit
983eed32fc
@ -66,15 +66,6 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Size = Vector2.One
|
Size = Vector2.One
|
||||||
},
|
},
|
||||||
new Container
|
|
||||||
{
|
|
||||||
Name = @"Icon container",
|
|
||||||
RelativeSizeAxes = Axes.Y,
|
|
||||||
Width = 50,
|
|
||||||
Origin = Anchor.CentreRight,
|
|
||||||
Anchor = Anchor.CentreRight,
|
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Icon = FontAwesome.Solid.Search,
|
Icon = FontAwesome.Solid.Search,
|
||||||
@ -84,13 +75,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Shear = -Shear
|
Shear = -Shear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
ColumnDimensions = new[]
|
ColumnDimensions = new[]
|
||||||
{
|
{
|
||||||
new Dimension(),
|
new Dimension(),
|
||||||
new Dimension(GridSizeMode.AutoSize)
|
new Dimension(GridSizeMode.Absolute, 50),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user