mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 06:07:11 +09:00
Pretty-ifying test case.
This commit is contained in:
@ -20,13 +20,11 @@ namespace osu.Desktop.Tests.Visual
|
|||||||
{
|
{
|
||||||
public TestCaseEditorMenuBar()
|
public TestCaseEditorMenuBar()
|
||||||
{
|
{
|
||||||
Add(new Container
|
Add(new MenuBar
|
||||||
{
|
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Width = 500,
|
|
||||||
Child = new EditorMenuBar
|
|
||||||
{
|
{
|
||||||
|
Anchor = Anchor.TopCentre,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
Y = 50,
|
||||||
Items = new[]
|
Items = new[]
|
||||||
{
|
{
|
||||||
new EditorMenuBarItem("File")
|
new EditorMenuBarItem("File")
|
||||||
@ -89,14 +87,9 @@ namespace osu.Desktop.Tests.Visual
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private class EditorMenuBar : MenuBar
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private class EditorMenuBarItem : MenuBarItem
|
private class EditorMenuBarItem : MenuBarItem
|
||||||
{
|
{
|
||||||
private const int fade_duration = 250;
|
private const int fade_duration = 250;
|
||||||
|
Reference in New Issue
Block a user