1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 21:57:55 +08:00
osu-lazer/osu.Game/Overlays/OverlayHeaderTabControl.cs

25 lines
715 B
C#
Raw Normal View History

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;
namespace osu.Game.Overlays
2018-12-23 04:50:25 +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
private class OverlayHeaderTabItem : OverlayTabItem<string>
2018-12-23 04:50:25 +08:00
{
public OverlayHeaderTabItem(string value)
2018-12-23 04:50:25 +08:00
: base(value)
{
Text.Text = value;
2018-12-23 04:50:25 +08:00
}
}
}
}