using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ShiftOS.Engine.UI { public partial class ShiftToolStrip : ToolStripProfessionalRenderer { protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e) { if (!e.Item.Selected) base.OnRenderMenuItemBackground(e); else { var rc = new Rectangle(Point.Empty, e.Item.Size); e.Graphics.FillRectangle(Brushes.Gray, rc); e.Graphics.DrawRectangle(Pens.White, 1, 0, rc.Width - 2, rc.Height - 1); } } } }