Split out expanding container logic from settings sidebar

This commit is contained in:
Dean Herbert
2022-01-06 17:15:42 +09:00
parent 1d69eb629c
commit 77980196c5
5 changed files with 65 additions and 42 deletions

View File

@ -62,14 +62,14 @@ namespace osu.Game.Overlays.Settings
{
textIconContent = new Container
{
Width = Sidebar.DEFAULT_WIDTH,
Width = SettingsSidebar.DEFAULT_WIDTH,
RelativeSizeAxes = Axes.Y,
Colour = OsuColour.Gray(0.6f),
Children = new Drawable[]
{
headerText = new OsuSpriteText
{
Position = new Vector2(Sidebar.DEFAULT_WIDTH + 10, 0),
Position = new Vector2(SettingsSidebar.DEFAULT_WIDTH + 10, 0),
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
},