mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 02:59:53 +08:00
aa07482cbb
Color from https://github.com/ppy/osu-web/blob/d56352aeefc412507c3dab7c16e3e3118421b436/resources/assets/less/functions.less#L159-L165
33 lines
923 B
C#
33 lines
923 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 Markdig.Syntax.Inlines;
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics.Containers.Markdown;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using osu.Game.Overlays;
|
|
|
|
namespace osu.Game.Graphics.Containers.Markdown
|
|
{
|
|
public class OsuMarkdownLinkText : MarkdownLinkText
|
|
{
|
|
private SpriteText spriteText;
|
|
|
|
public OsuMarkdownLinkText(string text, LinkInline linkInline)
|
|
: base(text, linkInline)
|
|
{
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OverlayColourProvider colourProvider)
|
|
{
|
|
spriteText.Colour = colourProvider.Light2;
|
|
}
|
|
|
|
public override SpriteText CreateSpriteText()
|
|
{
|
|
return spriteText = base.CreateSpriteText();
|
|
}
|
|
}
|
|
}
|