mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-01-22 17:52:15 +00:00
26 lines
782 B
C#
26 lines
782 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|