1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 02:43:18 +08:00

Fix test failures

This commit is contained in:
Daniel Cios 2024-09-19 21:50:59 +02:00
parent b86f246095
commit 1a48b46536

View File

@ -45,24 +45,27 @@ namespace osu.Game.Tests.Visual.UserInterface
private void createContent() private void createContent()
{ {
Child = new PopoverContainer AddStep("create component", () =>
{ {
RelativeSizeAxes = Axes.Both, Child = new PopoverContainer
Child = new FillFlowContainer
{ {
Anchor = Anchor.Centre, RelativeSizeAxes = Axes.Both,
Origin = Anchor.Centre, Child = new FillFlowContainer
Width = 500,
AutoSizeAxes = Axes.Y,
Children = new Drawable[]
{ {
component = new SettingsColour Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 500,
AutoSizeAxes = Axes.Y,
Children = new Drawable[]
{ {
LabelText = "a sample component", component = new SettingsColour
{
LabelText = "a sample component",
},
}, },
}, },
}, };
}; });
} }
private Colour4 randomColour() => new Color4( private Colour4 randomColour() => new Color4(