using Robust.Client.Graphics; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; namespace Content.Client.Administration.UI.CustomControls; public sealed class HSeparator : Control { private static readonly Color SeparatorColor = Color.FromHex("#3D4059"); private readonly StyleBoxFlat _styleBox; public Color Color { get => _styleBox.BackgroundColor; set => _styleBox.BackgroundColor = value; } public HSeparator(Color color) { _styleBox = new StyleBoxFlat { BackgroundColor = color, ContentMarginBottomOverride = 2, ContentMarginLeftOverride = 2 }; AddChild(new PanelContainer { PanelOverride = _styleBox }); } public HSeparator() : this(SeparatorColor) { } }