2019-01-24 16:43:03 +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-04-13 17:19:50 +08:00
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2018-04-18 15:04:02 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2020-03-11 09:18:41 +08:00
|
|
|
|
using osu.Framework.Extensions.Color4Extensions;
|
2017-09-13 10:41:10 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
2017-11-27 19:39:01 +08:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-04-18 15:04:02 +08:00
|
|
|
|
namespace osu.Game.Overlays.BeatmapSet.Buttons
|
2017-09-13 10:41:10 +08:00
|
|
|
|
{
|
2017-11-28 06:09:58 +08:00
|
|
|
|
public class HeaderButton : TriangleButton
|
2017-09-13 10:41:10 +08:00
|
|
|
|
{
|
|
|
|
|
public HeaderButton()
|
|
|
|
|
{
|
2017-11-27 19:39:01 +08:00
|
|
|
|
Height = 0;
|
|
|
|
|
RelativeSizeAxes = Axes.Y;
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-11-27 19:39:01 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
2017-11-28 06:20:44 +08:00
|
|
|
|
private void load()
|
2017-11-27 19:39:01 +08:00
|
|
|
|
{
|
2020-03-11 09:18:41 +08:00
|
|
|
|
BackgroundColour = Color4Extensions.FromHex(@"094c5f");
|
|
|
|
|
Triangles.ColourLight = Color4Extensions.FromHex(@"0f7c9b");
|
|
|
|
|
Triangles.ColourDark = Color4Extensions.FromHex(@"094c5f");
|
2017-11-28 06:09:58 +08:00
|
|
|
|
Triangles.TriangleScale = 1.5f;
|
2017-09-13 10:41:10 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|