DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Text.RegularExpressions;
namespace DevComponents.DotNetBar.Metro.Rendering
{
internal class MetroRibbonTabGroupPainter : Office2007RibbonTabGroupPainter
{
protected override void PaintTabGroupBackground(System.Drawing.Graphics g, DevComponents.DotNetBar.Rendering.Office2007RibbonTabGroupColorTable colorTable, System.Drawing.Rectangle bounds, System.Drawing.Rectangle groupBounds, bool glassEnabled)
{
DisplayHelp.FillRectangle(g, groupBounds, colorTable.Background);
if (StyleManager.Style != eStyle.Office2016)
{
Rectangle top = new Rectangle(groupBounds.X, groupBounds.Y, groupBounds.Width, 3);
DisplayHelp.FillRectangle(g, top, colorTable.Border);
if (StyleManager.Style == eStyle.OfficeMobile2014)
{
DisplayHelp.DrawGradientLine(g, groupBounds.X, groupBounds.Y, groupBounds.X, 24, colorTable.Border, 1);
DisplayHelp.DrawGradientLine(g, groupBounds.Right - 1, groupBounds.Y, groupBounds.Right - 1, 24, colorTable.Border, 1);
}
}
}
}
}