// Copyright (c) ppy Pty Ltd . 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.Shapes; using osuTK.Graphics; namespace osu.Framework.Graphics.Containers.Markdown { /// /// Visualises a horizontal separator. /// /// /// --- /// public class MarkdownSeparator : CompositeDrawable { public MarkdownSeparator() { AutoSizeAxes = Axes.Y; RelativeSizeAxes = Axes.X; } [BackgroundDependencyLoader] private void load() { InternalChild = CreateSeparator(); } protected virtual Drawable CreateSeparator() => new Box { RelativeSizeAxes = Axes.X, Height = 1, Colour = Color4.Gray, }; } }