// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. using FlaxEngine; using FlaxEngine.GUI; namespace FlaxEditor.GUI { /// /// Toolstrip separator control. /// /// public class ToolStripSeparator : Control { /// /// Initializes a new instance of the class. /// /// The height. public ToolStripSeparator(float height) : base(0, 0, 4, height) { AutoFocus = false; } /// public override void Draw() { base.Draw(); // Draw the separator line Render2D.FillRectangle(new Rectangle((Width - 4) / 2, 2, 1, Height - 4), Style.Current.LightBackground * 1.3f); } } }