1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 01:33:21 +08:00

Fix for colours and members rename.

This commit is contained in:
Huo Yaoyuan 2017-03-22 07:55:47 +08:00
parent b46ded7794
commit b06eb0122c
3 changed files with 6 additions and 6 deletions

View File

@ -35,6 +35,6 @@ namespace osu.Game.Graphics.UserInterface
AccentColour = colours.PinkDarker; AccentColour = colours.PinkDarker;
} }
protected override DropDownMenuItem<T> CreateMenuItem(string key, T value) => new OsuDropDownMenuItem<T>(key, value) { AccentColour = AccentColour }; protected override DropDownMenuItem<T> CreateMenuItem(string text, T value) => new OsuDropDownMenuItem<T>(text, value) { AccentColour = AccentColour };
} }
} }

View File

@ -16,7 +16,7 @@ namespace osu.Game.Graphics.UserInterface
public OsuMenu() public OsuMenu()
{ {
CornerRadius = 4; CornerRadius = 4;
ContentBackground.Colour = Color4.Black.Opacity(0.5f); Background.Colour = Color4.Black.Opacity(0.5f);
ItemsContainer.Padding = new MarginPadding(5); ItemsContainer.Padding = new MarginPadding(5);
} }

View File

@ -16,7 +16,7 @@ namespace osu.Game.Graphics.UserInterface
{ {
public class OsuTabControl<T> : TabControl<T> public class OsuTabControl<T> : TabControl<T>
{ {
protected override DropDown<T> CreateDropDownMenu() => new OsuTabDropDown(); protected override DropDown<T> CreateDropDown() => new OsuTabDropDown();
protected override TabItem<T> CreateTabItem(T value) => new OsuTabItem<T> { Value = value }; protected override TabItem<T> CreateTabItem(T value) => new OsuTabItem<T> { Value = value };
@ -62,9 +62,9 @@ namespace osu.Game.Graphics.UserInterface
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
}; };
protected override DropDownMenuItem<T> CreateMenuItem(string key, T value) protected override DropDownMenuItem<T> CreateMenuItem(string text, T value)
{ {
var item = base.CreateMenuItem(key, value); var item = base.CreateMenuItem(text, value);
item.ForegroundColourHover = Color4.Black; item.ForegroundColourHover = Color4.Black;
return item; return item;
} }
@ -76,7 +76,7 @@ namespace osu.Game.Graphics.UserInterface
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
DropDownMenu.Colour = Color4.Black.Opacity(0.7f); DropDownMenu.Background.Colour = Color4.Black.Opacity(0.7f);
DropDownMenu.MaxHeight = 400; DropDownMenu.MaxHeight = 400;
} }