VSeparator.cs 626 B

1234567891011121314151617181920212223242526
  1. using System.Numerics;
  2. using Robust.Client.Graphics;
  3. using Robust.Client.UserInterface.Controls;
  4. using Robust.Shared.Maths;
  5. namespace Content.Client.Administration.UI.CustomControls;
  6. public sealed class VSeparator : PanelContainer
  7. {
  8. private static readonly Color SeparatorColor = Color.FromHex("#3D4059");
  9. public VSeparator(Color color)
  10. {
  11. MinSize = new Vector2(2, 5);
  12. AddChild(new PanelContainer
  13. {
  14. PanelOverride = new StyleBoxFlat
  15. {
  16. BackgroundColor = color
  17. }
  18. });
  19. }
  20. public VSeparator() : this(SeparatorColor) { }
  21. }