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;
|
|
|
|
|
|
2019-05-21 04:36:21 +00:00
|
|
|
|
namespace osu.Game.Overlays
|
2018-12-22 20:50:25 +00:00
|
|
|
|
{
|
2019-06-18 13:20:35 +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
|
|
|
|
|
2019-06-18 13:20:35 +00:00
|
|
|
|
private class OverlayHeaderTabItem : OverlayTabItem<string>
|
2018-12-22 20:50:25 +00:00
|
|
|
|
{
|
2019-06-18 13:20:35 +00:00
|
|
|
|
public OverlayHeaderTabItem(string value)
|
2018-12-22 20:50:25 +00:00
|
|
|
|
: base(value)
|
|
|
|
|
{
|
2019-06-18 13:20:35 +00:00
|
|
|
|
Text.Text = value;
|
2018-12-22 20:50:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|