aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine/UI/ShiftStripRenderer.cs
blob: 7b8498f70365695216329e9736bea59774ef7742 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ShiftOS.Engine.UI
{
    public class ShiftStripRenderer : ToolStripProfessionalRenderer
    {
        protected override void OnRenderLabelBackground(ToolStripItemRenderEventArgs e)
        {
            using (var b = new SolidBrush(e.Item.BackColor))
            {
                e.Graphics.FillRectangle(b, new Rectangle(Point.Empty, e.Item.Size));
            }
        }
    }
}