mirror of
https://github.com/ppy/osu.git
synced 2026-06-09 09:04:15 +08:00
6a921af085
Reference https://github.com/ppy/osu-web/blob/d56352aeefc412507c3dab7c16e3e3118421b436/resources/assets/less/bem/osu-md.less#L19-L21
27 lines
757 B
C#
27 lines
757 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.Game.Overlays;
|
|
|
|
namespace osu.Game.Graphics.Containers.Markdown
|
|
{
|
|
public class OsuMarkdownSeparator : MarkdownSeparator
|
|
{
|
|
private Drawable separator;
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OverlayColourProvider colourProvider)
|
|
{
|
|
separator.Colour = colourProvider.Background3;
|
|
}
|
|
|
|
protected override Drawable CreateSeparator()
|
|
{
|
|
return separator = base.CreateSeparator();
|
|
}
|
|
}
|
|
}
|