2019-01-28 06:45:00 +08: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-23 04:50:25 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics.UserInterface;
|
|
|
|
|
|
2019-05-21 12:36:21 +08:00
|
|
|
|
namespace osu.Game.Overlays
|
2018-12-23 04:50:25 +08:00
|
|
|
|
{
|
2019-06-18 21:20:35 +08:00
|
|
|
|
public class OverlayHeaderTabControl : OverlayTabControl<string>
|
2018-12-23 04:50:25 +08:00
|
|
|
|
{
|
2019-06-19 17:15:32 +08:00
|
|
|
|
protected override TabItem<string> CreateTabItem(string value) => new OverlayHeaderTabItem(value)
|
2018-12-23 04:50:25 +08:00
|
|
|
|
{
|
2019-06-19 17:15:32 +08:00
|
|
|
|
AccentColour = AccentColour,
|
|
|
|
|
};
|
2018-12-23 04:50:25 +08:00
|
|
|
|
|
2019-12-10 21:04:26 +08:00
|
|
|
|
private class OverlayHeaderTabItem : OverlayTabItem
|
2018-12-23 04:50:25 +08:00
|
|
|
|
{
|
2019-06-18 21:20:35 +08:00
|
|
|
|
public OverlayHeaderTabItem(string value)
|
2018-12-23 04:50:25 +08:00
|
|
|
|
: base(value)
|
|
|
|
|
{
|
2019-06-18 21:20:35 +08:00
|
|
|
|
Text.Text = value;
|
2018-12-23 04:50:25 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|