aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine/UI/ShiftToolStrip.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Engine/UI/ShiftToolStrip.cs')
-rw-r--r--ShiftOS.Engine/UI/ShiftToolStrip.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/ShiftOS.Engine/UI/ShiftToolStrip.cs b/ShiftOS.Engine/UI/ShiftToolStrip.cs
new file mode 100644
index 0000000..853e79c
--- /dev/null
+++ b/ShiftOS.Engine/UI/ShiftToolStrip.cs
@@ -0,0 +1,26 @@
+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);
+ }
+ }
+ }
+}