HSeparator.cs 673 B

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