mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 15:12:57 +08:00
28 lines
841 B
C#
28 lines
841 B
C#
// 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;
|
|
using osu.Framework.Graphics.Shapes;
|
|
using osu.Game.Overlays;
|
|
|
|
namespace osu.Game.Graphics.Containers.Markdown
|
|
{
|
|
public class OsuMarkdownSeparator : MarkdownSeparator
|
|
{
|
|
protected override Drawable CreateSeparator() => new Separator();
|
|
|
|
private class Separator : Box
|
|
{
|
|
[BackgroundDependencyLoader]
|
|
private void load(OverlayColourProvider colourProvider)
|
|
{
|
|
RelativeSizeAxes = Axes.X;
|
|
Height = 1;
|
|
Colour = colourProvider.Background3;
|
|
}
|
|
}
|
|
}
|
|
}
|