Source/TabColorScheme.cs

(开头部分) 86KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using DevComponents.DotNetBar.Rendering;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Represents the class that defines colors for a tab control.
	/// </summary>
	[ToolboxItem(false),TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
	public class TabColorScheme
	{
		#region Events
		public event EventHandler ColorChanged;
		#endregion

		#region Private variables
		private eTabStripStyle m_Style=eTabStripStyle.OneNote;

		// Tab Control Section
		private Color m_TabBackground=Color.Empty;
		private bool m_TabBackgroundCustom=false;
		private Color m_TabBackground2=Color.Empty;
		private bool m_TabBackground2Custom=false;
		private int m_TabBackgroundGradientAngle=90;
		private Color m_TabBorder=Color.Empty;
		private bool m_TabBorderCustom=false;
		
		// Tab Panel Section
		private Color m_TabPanelBackground=Color.Empty;
		private bool m_TabPanelBackgroundCustom=false;
		private Color m_TabPanelBackground2=Color.Empty;
		private bool m_TabPanelBackground2Custom=false;
		private int m_TabPanelBackgroundGradientAngle=90;
		private Color m_TabPanelBorder=Color.Empty;
		private bool m_TabPanelBorderCustom=false;
		
		// Tab Item Section
		private Color m_TabItemBorder=Color.Empty;
		private bool m_TabItemBorderCustom=false;
		private Color m_TabItemBorderLight=Color.Empty;
		private bool m_TabItemBorderLightCustom=false;
		private Color m_TabItemBorderDark=Color.Empty;
		private bool m_TabItemBorderDarkCustom=false;
		private Color m_TabItemBackground=Color.Empty;
		private bool m_TabItemBackgroundCustom=false;
		private Color m_TabItemBackground2=Color.Empty;
		private bool m_TabItemBackground2Custom=false;
		private int m_TabItemBackgroundGradientAngle=90;
        private BackgroundColorBlendCollection m_TabItemBackgroundColorBlend = new BackgroundColorBlendCollection();
		private Color m_TabItemText=Color.Empty;
		private bool m_TabItemTextCustom=false;

		// Tab Item Hot Section
		private Color m_TabItemHotBorder=Color.Empty;
		private bool m_TabItemHotBorderCustom=false;
		private Color m_TabItemHotBorderLight=Color.Empty;
		private bool m_TabItemHotBorderLightCustom=false;
后面还有 2062 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。