2021-11-22 19:08:27 +01:00
|
|
|
|
using Robust.Client.Graphics;
|
|
|
|
|
|
using Robust.Client.UserInterface.Controls;
|
|
|
|
|
|
using Robust.Shared.Maths;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Administration.UI.CustomControls;
|
|
|
|
|
|
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class VSeparator : PanelContainer
|
2021-11-22 19:08:27 +01:00
|
|
|
|
{
|
|
|
|
|
|
private static readonly Color SeparatorColor = Color.FromHex("#3D4059");
|
|
|
|
|
|
|
|
|
|
|
|
public VSeparator(Color color)
|
|
|
|
|
|
{
|
|
|
|
|
|
MinSize = (2, 5);
|
|
|
|
|
|
|
|
|
|
|
|
AddChild(new PanelContainer
|
|
|
|
|
|
{
|
|
|
|
|
|
PanelOverride = new StyleBoxFlat
|
|
|
|
|
|
{
|
|
|
|
|
|
BackgroundColor = color
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public VSeparator() : this(SeparatorColor) { }
|
|
|
|
|
|
}
|