2021-04-28 10:23:05 +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.
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers.Markdown;
|
2021-05-06 18:17:14 +08:00
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
2021-04-28 10:23:05 +08:00
|
|
|
|
using osu.Game.Overlays;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Graphics.Containers.Markdown
|
|
|
|
|
{
|
|
|
|
|
public partial class OsuMarkdownSeparator : MarkdownSeparator
|
|
|
|
|
{
|
2021-05-06 18:17:14 +08:00
|
|
|
|
protected override Drawable CreateSeparator() => new Separator();
|
2021-04-28 10:23:05 +08:00
|
|
|
|
|
2021-05-06 18:17:14 +08:00
|
|
|
|
private partial class Separator : Box
|
2021-04-28 10:23:05 +08:00
|
|
|
|
{
|
2021-05-06 18:17:14 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OverlayColourProvider colourProvider)
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.X;
|
|
|
|
|
Height = 1;
|
|
|
|
|
Colour = colourProvider.Background3;
|
|
|
|
|
}
|
2021-04-28 10:23:05 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|