Source/Rendering/Office2010BlueFactory.cs
(开头部分) 75KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar.Rendering
{
public class Office2010BlueFactory
{
public static void InitializeBlueColorTable(Office2007ColorTable table, ColorFactory factory)
{
#region RibbonControl Start Images
table.RibbonControl.StartButtonDefault = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010NormalBlue.png");
table.RibbonControl.StartButtonMouseOver = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010HotBlue.png");
table.RibbonControl.StartButtonPressed = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010PressedBlue.png");
#endregion
#region RibbonControl
table.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBAC9DB), factory.GetColor(0x9FAEC2));
table.RibbonControl.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFBFDFF), factory.GetColor(0xE5F0FB));
table.RibbonControl.TabsBackground = new LinearGradientColorTable(factory.GetColor(0xDFE9F5), Color.Empty);
table.RibbonControl.TabDividerBorder = factory.GetColor(0xA7BAD1);
table.RibbonControl.TabDividerBorderLight = factory.GetColor(0xF4F8FD);
table.RibbonControl.CornerSize = 3;
table.RibbonControl.PanelTopBackgroundHeight = 0;
table.RibbonControl.PanelTopBackground = new LinearGradientColorTable(factory.GetColor(0xF7FBFF), factory.GetColor(0xDCE7F5));
table.RibbonControl.PanelBottomBackground = null;// new LinearGradientColorTable(factory.GetColor(0xC9D9ED), factory.GetColor(0xE7F2FF));
#endregion
#region Item Group
table.ItemGroup.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xAEBDD0), factory.GetColor(0xB0C0D5));
table.ItemGroup.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF5F7FB), factory.GetColor(0xF5FCFF));
table.ItemGroup.TopBackground = new LinearGradientColorTable(factory.GetColor(0xEEF4F9), factory.GetColor(0xE5EEF5));
table.ItemGroup.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xDFE9F3), factory.GetColor(0xE9F2F9));
table.ItemGroup.ItemGroupDividerDark = Color.FromArgb(196, factory.GetColor(0xBBCBDB));
table.ItemGroup.ItemGroupDividerLight = Color.FromArgb(128, factory.GetColor(0xFFFFFF));
#endregion
#region RibbonBar
table.RibbonBar.Default = GetRibbonBar(factory);
table.RibbonBar.MouseOver = GetRibbonBarMouseOver(factory);
table.RibbonBar.Expanded = Office2007ColorTableFactory.GetRibbonBarBlueExpanded(factory);
#endregion
#region ButtonItem Colors Initialization
table.RibbonButtonItemColors.Clear();
table.ButtonItemColors.Clear();
table.MenuButtonItemColors.Clear();
// Orange
Office2007ButtonItemColorTable cb = GetButtonItemBlueOrange(factory);
cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
table.ButtonItemColors.Add(cb);
// Orange with background
cb = GetButtonItemBlueOrangeWithBackground(factory);
cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
table.ButtonItemColors.Add(cb);
// Blue
cb = Office2007ColorTableFactory.GetButtonItemBlueBlue(factory);
cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
table.ButtonItemColors.Add(cb);
// Blue with background
后面还有 1039 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。