1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 11:47:24 +08:00
osu-lazer/osu.Game/Overlays/OverlayHeaderBreadcrumbControl.cs

32 lines
978 B
C#
Raw Normal View History

// 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.
using osu.Game.Graphics.UserInterface;
using osu.Framework.Graphics;
using osu.Framework.Graphics.UserInterface;
namespace osu.Game.Overlays
{
public class OverlayHeaderBreadcrumbControl : BreadcrumbControl<string>
{
public OverlayHeaderBreadcrumbControl()
{
RelativeSizeAxes = Axes.X;
}
2019-12-30 13:26:49 +08:00
protected override float ItemChevronSize => 8;
protected override TabItem<string> CreateTabItem(string value) => new ControlTabItem(value, ItemChevronSize);
private class ControlTabItem : BreadcrumbTabItem
{
public ControlTabItem(string value, float itemChevronSize)
: base(value, itemChevronSize)
{
Text.Font = Text.Font.With(size: 14);
Chevron.Y = 3;
}
}
}
}