1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-12 09:47:18 +08:00
osu-lazer/osu.Game/Overlays/OverlayHeaderTabControl.cs

25 lines
715 B
C#
Raw Normal View History

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