diff --git a/osu.Game/Graphics/UserInterface/OsuDropdown.cs b/osu.Game/Graphics/UserInterface/OsuDropdown.cs index 20b96a4045..7a31337660 100644 --- a/osu.Game/Graphics/UserInterface/OsuDropdown.cs +++ b/osu.Game/Graphics/UserInterface/OsuDropdown.cs @@ -29,7 +29,7 @@ namespace osu.Game.Graphics.UserInterface accentColour = value; if (Header != null) ((OsuDropdownHeader)Header).AccentColour = value; - foreach (var item in MenuItems.OfType>()) + foreach (var item in MenuItems.OfType()) item.AccentColour = value; } } @@ -41,11 +41,11 @@ namespace osu.Game.Graphics.UserInterface AccentColour = colours.PinkDarker; } - protected override DropdownMenuItem CreateMenuItem(string text, T value) => new OsuDropdownMenuItem(text, value) { AccentColour = AccentColour }; + protected override DropdownMenuItem CreateMenuItem(string text, T value) => new OsuDropdownMenuItem(text, value) { AccentColour = AccentColour }; - private class OsuDropdownMenuItem : DropdownMenuItem + private class OsuDropdownMenuItem : DropdownMenuItem { - public OsuDropdownMenuItem(string text, T1 value) : base(text, value) + public OsuDropdownMenuItem(string text, T value) : base(text, value) { Foreground.Padding = new MarginPadding(2); diff --git a/osu.Game/Graphics/UserInterface/OsuTabControl.cs b/osu.Game/Graphics/UserInterface/OsuTabControl.cs index 2f26a1ca30..8283c1baa0 100644 --- a/osu.Game/Graphics/UserInterface/OsuTabControl.cs +++ b/osu.Game/Graphics/UserInterface/OsuTabControl.cs @@ -22,7 +22,7 @@ namespace osu.Game.Graphics.UserInterface { protected override Dropdown CreateDropdown() => new OsuTabDropdown(); - protected override TabItem CreateTabItem(T value) => new OsuTabItem { Value = value }; + protected override TabItem CreateTabItem(T value) => new OsuTabItem { Value = value }; protected override bool InternalContains(Vector2 screenSpacePos) => base.InternalContains(screenSpacePos) || Dropdown.Contains(screenSpacePos); @@ -52,12 +52,12 @@ namespace osu.Game.Graphics.UserInterface var dropDown = Dropdown as OsuTabDropdown; if (dropDown != null) dropDown.AccentColour = value; - foreach (var item in TabContainer.Children.OfType>()) + foreach (var item in TabContainer.Children.OfType()) item.AccentColour = value; } } - private class OsuTabItem : TabItem + private class OsuTabItem : TabItem { private SpriteText text; private Box box; @@ -74,7 +74,7 @@ namespace osu.Game.Graphics.UserInterface } } - public new T1 Value + public new T Value { get { return base.Value; } set