mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Reduce complexity of icon container nesting
This commit is contained in:
@ -66,31 +66,20 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Size = Vector2.One
|
Size = Vector2.One
|
||||||
},
|
},
|
||||||
new Container
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Name = @"Icon container",
|
Icon = FontAwesome.Solid.Search,
|
||||||
RelativeSizeAxes = Axes.Y,
|
Origin = Anchor.Centre,
|
||||||
Width = 50,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.CentreRight,
|
Size = new Vector2(16),
|
||||||
Anchor = Anchor.CentreRight,
|
Shear = -Shear
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
|
||||||
new SpriteIcon
|
|
||||||
{
|
|
||||||
Icon = FontAwesome.Solid.Search,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Size = new Vector2(16),
|
|
||||||
Shear = -Shear
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ColumnDimensions = new[]
|
ColumnDimensions = new[]
|
||||||
{
|
{
|
||||||
new Dimension(),
|
new Dimension(),
|
||||||
new Dimension(GridSizeMode.AutoSize)
|
new Dimension(GridSizeMode.Absolute, 50),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user