osu/osu.Game/Overlays/OverlayHeaderTabControl.cs

25 lines
715 B
C#
Raw Normal View History

2019-01-27 22:45:00 +00:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
2018-12-22 20:50:25 +00:00
using osu.Framework.Graphics.UserInterface;
namespace osu.Game.Overlays
2018-12-22 20:50:25 +00:00
{
public class OverlayHeaderTabControl : OverlayTabControl<string>
2018-12-22 20:50:25 +00:00
{
2019-06-19 09:15:32 +00:00
protected override TabItem<string> CreateTabItem(string value) => new OverlayHeaderTabItem(value)
2018-12-22 20:50:25 +00:00
{
2019-06-19 09:15:32 +00:00
AccentColour = AccentColour,
};
2018-12-22 20:50:25 +00:00
private class OverlayHeaderTabItem : OverlayTabItem<string>
2018-12-22 20:50:25 +00:00
{
public OverlayHeaderTabItem(string value)
2018-12-22 20:50:25 +00:00
: base(value)
{
Text.Text = value;
2018-12-22 20:50:25 +00:00
}
}
}
}