1、优化LOG显示与引用

2、添加PMA工具,工具内容待完善
3、修复流程树显示
4、添加开源项目,优化UI空间
5、其他BUG更改
This commit is contained in:
liu.wenjie
2021-11-23 15:51:37 +08:00
parent 47f77f5e64
commit a24dda2525
474 changed files with 91916 additions and 6429 deletions

View File

@@ -0,0 +1,73 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="BasisColors.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace HZH_Controls
{
/// <summary>
/// Class BasisColors.
/// </summary>
public class BasisColors
{
/// <summary>
/// The light
/// </summary>
private static Color light = ColorTranslator.FromHtml("#f5f7fa");
/// <summary>
/// Gets the light.
/// </summary>
/// <value>The light.</value>
public static Color Light
{
get { return light; }
internal set { light = value; }
}
/// <summary>
/// The medium
/// </summary>
private static Color medium = ColorTranslator.FromHtml("#f0f2f5");
/// <summary>
/// Gets the medium.
/// </summary>
/// <value>The medium.</value>
public static Color Medium
{
get { return medium; }
internal set { medium = value; }
}
/// <summary>
/// The dark
/// </summary>
private static Color dark = ColorTranslator.FromHtml("#000000");
/// <summary>
/// Gets the dark.
/// </summary>
/// <value>The dark.</value>
public static Color Dark
{
get { return dark; }
internal set { dark = value; }
}
}
}

View File

@@ -0,0 +1,86 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="BorderColors.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace HZH_Controls
{
/// <summary>
/// Class BorderColors.
/// </summary>
public class BorderColors
{
/// <summary>
/// The green
/// </summary>
private static Color green = ColorTranslator.FromHtml("#f0f9ea");
/// <summary>
/// Gets the green.
/// </summary>
/// <value>The green.</value>
public static Color Green
{
get { return green; }
internal set { green = value; }
}
/// <summary>
/// The blue
/// </summary>
private static Color blue = ColorTranslator.FromHtml("#ecf5ff");
/// <summary>
/// Gets the blue.
/// </summary>
/// <value>The blue.</value>
public static Color Blue
{
get { return blue; }
internal set { blue = value; }
}
/// <summary>
/// The red
/// </summary>
private static Color red = ColorTranslator.FromHtml("#fef0f0");
/// <summary>
/// Gets the red.
/// </summary>
/// <value>The red.</value>
public static Color Red
{
get { return red; }
internal set { red = value; }
}
/// <summary>
/// The yellow
/// </summary>
private static Color yellow = ColorTranslator.FromHtml("#fdf5e6");
/// <summary>
/// Gets the yellow.
/// </summary>
/// <value>The yellow.</value>
public static Color Yellow
{
get { return yellow; }
internal set { yellow = value; }
}
}
}

View File

@@ -0,0 +1,203 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="ColorEnums.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HZH_Controls
{
/// <summary>
/// Enum BasisColorsTypes
/// </summary>
public enum BasisColorsTypes
{
/// <summary>
/// The light
/// </summary>
Light = 1,
/// <summary>
/// The medium
/// </summary>
Medium = 2,
/// <summary>
/// The dark
/// </summary>
Dark = 3
}
/// <summary>
/// Enum BorderColorsTypes
/// </summary>
public enum BorderColorsTypes
{
/// <summary>
/// The green
/// </summary>
Green = 1,
/// <summary>
/// The blue
/// </summary>
Blue = 2,
/// <summary>
/// The red
/// </summary>
Red = 3,
/// <summary>
/// The yellow
/// </summary>
Yellow = 4
}
/// <summary>
/// Enum GradientColorsTypes
/// </summary>
public enum GradientColorsTypes
{
/// <summary>
/// The orange
/// </summary>
Orange = 1,
/// <summary>
/// The light green
/// </summary>
LightGreen = 2,
/// <summary>
/// The green
/// </summary>
Green = 3,
/// <summary>
/// The blue
/// </summary>
Blue = 4,
/// <summary>
/// The blue green
/// </summary>
BlueGreen = 5,
/// <summary>
/// The light violet
/// </summary>
LightViolet = 6,
/// <summary>
/// The violet
/// </summary>
Violet = 7,
/// <summary>
/// The gray
/// </summary>
Gray = 8
}
/// <summary>
/// Enum LineColorsTypes
/// </summary>
public enum LineColorsTypes
{
/// <summary>
/// The more light
/// </summary>
MoreLight = 1,
/// <summary>
/// The light
/// </summary>
Light = 2,
/// <summary>
/// The dark
/// </summary>
Dark = 3,
/// <summary>
/// The more dark
/// </summary>
MoreDark = 4
}
/// <summary>
/// Enum StatusColorsTypes
/// </summary>
public enum StatusColorsTypes
{
/// <summary>
/// The primary
/// </summary>
Primary = 1,
/// <summary>
/// The success
/// </summary>
Success = 2,
/// <summary>
/// The warning
/// </summary>
Warning = 3,
/// <summary>
/// The danger
/// </summary>
Danger = 4,
/// <summary>
/// The information
/// </summary>
Info = 5
}
/// <summary>
/// Enum TableColorsTypes
/// </summary>
public enum TableColorsTypes
{
/// <summary>
/// The green
/// </summary>
Green = 1,
/// <summary>
/// The blue
/// </summary>
Blue = 2,
/// <summary>
/// The red
/// </summary>
Red = 3,
/// <summary>
/// The yellow
/// </summary>
Yellow = 4,
/// <summary>
/// The gray
/// </summary>
Gray = 5
}
/// <summary>
/// Enum TextColorsTypes
/// </summary>
public enum TextColorsTypes
{
/// <summary>
/// The more light
/// </summary>
MoreLight = 1,
/// <summary>
/// The light
/// </summary>
Light = 2,
/// <summary>
/// The dark
/// </summary>
Dark = 3,
/// <summary>
/// The more dark
/// </summary>
MoreDark = 4
}
}

View File

@@ -0,0 +1,264 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="ColorExt.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace HZH_Controls
{
/// <summary>
/// Class ColorExt.
/// </summary>
public static class ColorExt
{
#region English:Reset color
/// <summary>
/// Resets the color.
/// </summary>
/// <param name="type">The type.</param>
/// <param name="light">The light.</param>
/// <param name="medium">The medium.</param>
/// <param name="dark">The dark.</param>
public static void ResetColor(
this BasisColors type,
Color light,
Color medium,
Color dark)
{
BasisColors.Light = light;
BasisColors.Medium = medium;
BasisColors.Dark = dark;
}
/// <summary>
/// Resets the color.
/// </summary>
/// <param name="type">The type.</param>
/// <param name="green">The green.</param>
/// <param name="blue">The blue.</param>
/// <param name="red">The red.</param>
/// <param name="yellow">The yellow.</param>
public static void ResetColor(
this BorderColors type,
Color green,
Color blue,
Color red,
Color yellow)
{
BorderColors.Green = green;
BorderColors.Blue = blue;
BorderColors.Red = red;
BorderColors.Yellow = yellow;
}
/// <summary>
/// Resets the color.
/// </summary>
/// <param name="type">The type.</param>
/// <param name="orange">The orange.</param>
/// <param name="lightGreen">The light green.</param>
/// <param name="green">The green.</param>
/// <param name="blue">The blue.</param>
/// <param name="blueGreen">The blue green.</param>
/// <param name="lightViolet">The light violet.</param>
/// <param name="violet">The violet.</param>
/// <param name="gray">The gray.</param>
public static void ResetColor(
this GradientColors type,
Color[] orange,
Color[] lightGreen,
Color[] green,
Color[] blue,
Color[] blueGreen,
Color[] lightViolet,
Color[] violet,
Color[] gray
)
{
if (orange != null && orange.Length == 2)
GradientColors.Orange = orange;
if (orange != null && orange.Length == 2)
GradientColors.LightGreen = lightGreen;
if (orange != null && orange.Length == 2)
GradientColors.Green = green;
if (orange != null && orange.Length == 2)
GradientColors.Blue = blue;
if (orange != null && orange.Length == 2)
GradientColors.BlueGreen = blueGreen;
if (orange != null && orange.Length == 2)
GradientColors.LightViolet = lightViolet;
if (orange != null && orange.Length == 2)
GradientColors.Violet = violet;
if (orange != null && orange.Length == 2)
GradientColors.Gray = gray;
}
/// <summary>
/// Resets the color.
/// </summary>
/// <param name="type">The type.</param>
/// <param name="moreLight">The more light.</param>
/// <param name="light">The light.</param>
/// <param name="dark">The dark.</param>
/// <param name="moreDark">The more dark.</param>
public static void ResetColor(
this LineColors type,
Color moreLight,
Color light,
Color dark,
Color moreDark)
{
LineColors.MoreLight = moreLight;
LineColors.Light = light;
LineColors.Dark = dark;
LineColors.MoreDark = moreDark;
}
/// <summary>
/// Resets the color.
/// </summary>
/// <param name="type">The type.</param>
/// <param name="primary">The primary.</param>
/// <param name="success">The success.</param>
/// <param name="warning">The warning.</param>
/// <param name="danger">The danger.</param>
/// <param name="info">The information.</param>
public static void ResetColor(
this StatusColors type,
Color primary,
Color success,
Color warning,
Color danger,
Color info
)
{
StatusColors.Primary = primary;
StatusColors.Success = success;
StatusColors.Warning = warning;
StatusColors.Danger = danger;
StatusColors.Info = info;
}
/// <summary>
/// Resets the color.
/// </summary>
/// <param name="type">The type.</param>
/// <param name="green">The green.</param>
/// <param name="blue">The blue.</param>
/// <param name="red">The red.</param>
/// <param name="yellow">The yellow.</param>
/// <param name="gray">The gray.</param>
public static void ResetColor(
this TableColors type,
Color green,
Color blue,
Color red,
Color yellow,
Color gray
)
{
TableColors.Green = green;
TableColors.Blue = blue;
TableColors.Red = red;
TableColors.Yellow = yellow;
TableColors.Gray = gray;
}
/// <summary>
/// Resets the color.
/// </summary>
/// <param name="type">The type.</param>
/// <param name="moreLight">The more light.</param>
/// <param name="light">The light.</param>
/// <param name="dark">The dark.</param>
/// <param name="moreDark">The more dark.</param>
public static void ResetColor(
this TextColors type,
Color moreLight,
Color light,
Color dark,
Color moreDark)
{
TextColors.MoreLight = moreLight;
TextColors.Light = light;
TextColors.Dark = dark;
TextColors.MoreDark = moreDark;
}
#endregion
#region English:Get a built-in color
/// <summary>
/// 功能描述:获取一个内置颜色 English:Get a built-in color
/// 作  者:HZH
/// 创建日期:2019-09-30 11:08:04
/// 任务编号:POS
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="t">t</param>
/// <returns>颜色列表</returns>
public static Color[] GetInternalColor<T>(T t)
{
Type type = null;
if (t is BasisColorsTypes)
{
type = typeof(BasisColors);
}
else if (t is BorderColorsTypes)
{
type = typeof(BorderColors);
}
else if (t is GradientColorsTypes)
{
type = typeof(GradientColors);
}
else if (t is LineColorsTypes)
{
type = typeof(LineColors);
}
else if (t is StatusColorsTypes)
{
type = typeof(StatusColors);
}
else if (t is TableColorsTypes)
{
type = typeof(TableColors);
}
else if (t is TextColorsTypes)
{
type = typeof(TextColors);
}
if (type == null)
return new Color[] { Color.Empty };
else
{
string strName = t.ToString();
var pi = type.GetProperty(strName);
if (pi == null)
return new Color[] { Color.Empty };
else
{
var c = pi.GetValue(null, null);
if (c == null)
return new Color[] { Color.Empty };
else if (c is Color[])
return (Color[])c;
else
return new Color[] { (Color)c };
}
}
}
#endregion
}
}

View File

@@ -0,0 +1,142 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="GradientColors.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace HZH_Controls
{
/// <summary>
/// Class GradientColors.
/// </summary>
public class GradientColors
{
/// <summary>
/// The orange
/// </summary>
private static Color[] orange = new Color[] { Color.FromArgb(252, 196, 136), Color.FromArgb(243, 138, 159) };
/// <summary>
/// Gets the orange.
/// </summary>
/// <value>The orange.</value>
public static Color[] Orange
{
get { return GradientColors.orange; }
internal set { GradientColors.orange = value; }
}
/// <summary>
/// The light green
/// </summary>
private static Color[] lightGreen = new Color[] { Color.FromArgb(210, 251, 123), Color.FromArgb(152, 231, 160) };
/// <summary>
/// Gets the light green.
/// </summary>
/// <value>The light green.</value>
public static Color[] LightGreen
{
get { return GradientColors.lightGreen; }
internal set { GradientColors.lightGreen = value; }
}
/// <summary>
/// The green
/// </summary>
private static Color[] green = new Color[] { Color.FromArgb(138, 241, 124), Color.FromArgb(32, 190, 179) };
/// <summary>
/// Gets the green.
/// </summary>
/// <value>The green.</value>
public static Color[] Green
{
get { return GradientColors.green; }
internal set { GradientColors.green = value; }
}
/// <summary>
/// The blue
/// </summary>
private static Color[] blue = new Color[] { Color.FromArgb(193, 232, 251), Color.FromArgb(162, 197, 253) };
/// <summary>
/// Gets the blue.
/// </summary>
/// <value>The blue.</value>
public static Color[] Blue
{
get { return GradientColors.blue; }
internal set { GradientColors.blue = value; }
}
/// <summary>
/// The blue green
/// </summary>
private static Color[] blueGreen = new Color[] { Color.FromArgb(122, 251, 218), Color.FromArgb(16, 193, 252) };
/// <summary>
/// Gets the blue green.
/// </summary>
/// <value>The blue green.</value>
public static Color[] BlueGreen
{
get { return GradientColors.blueGreen; }
internal set { GradientColors.blueGreen = value; }
}
/// <summary>
/// The light violet
/// </summary>
private static Color[] lightViolet = new Color[] { Color.FromArgb(248, 192, 234), Color.FromArgb(164, 142, 210) };
/// <summary>
/// Gets the light violet.
/// </summary>
/// <value>The light violet.</value>
public static Color[] LightViolet
{
get { return GradientColors.lightViolet; }
internal set { GradientColors.lightViolet = value; }
}
/// <summary>
/// The violet
/// </summary>
private static Color[] violet = new Color[] { Color.FromArgb(185, 154, 241), Color.FromArgb(137, 124, 242) };
/// <summary>
/// Gets the violet.
/// </summary>
/// <value>The violet.</value>
public static Color[] Violet
{
get { return GradientColors.violet; }
internal set { GradientColors.violet = value; }
}
/// <summary>
/// The gray
/// </summary>
private static Color[] gray = new Color[] { Color.FromArgb(233, 238, 239), Color.FromArgb(147, 162, 175) };
/// <summary>
/// Gets the gray.
/// </summary>
/// <value>The gray.</value>
public static Color[] Gray
{
get { return GradientColors.gray; }
internal set { GradientColors.gray = value; }
}
}
}

View File

@@ -0,0 +1,86 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="LineColors.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace HZH_Controls
{
/// <summary>
/// Class LineColors.
/// </summary>
public class LineColors
{
/// <summary>
/// The more light
/// </summary>
private static Color _MoreLight = ColorTranslator.FromHtml("#f2f6fc");
/// <summary>
/// Gets the more light.
/// </summary>
/// <value>The more light.</value>
public static Color MoreLight
{
get { return _MoreLight; }
internal set { _MoreLight = value; }
}
/// <summary>
/// The light
/// </summary>
private static Color _Light = ColorTranslator.FromHtml("#ebeef5");
/// <summary>
/// Gets the light.
/// </summary>
/// <value>The light.</value>
public static Color Light
{
get { return _Light; }
internal set { _Light = value; }
}
/// <summary>
/// The dark
/// </summary>
private static Color _Dark = ColorTranslator.FromHtml("#e4e7ed");
/// <summary>
/// Gets the dark.
/// </summary>
/// <value>The dark.</value>
public static Color Dark
{
get { return _Dark; }
internal set { _Dark = value; }
}
/// <summary>
/// The more dark
/// </summary>
private static Color _MoreDark = ColorTranslator.FromHtml("#dcdfe6");
/// <summary>
/// Gets the more dark.
/// </summary>
/// <value>The more dark.</value>
public static Color MoreDark
{
get { return _MoreDark; }
internal set { _MoreDark = value; }
}
}
}

View File

@@ -0,0 +1,100 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="StatusColors.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace HZH_Controls
{
/// <summary>
/// 状态颜色
/// </summary>
public class StatusColors
{
/// <summary>
/// The primary
/// </summary>
private static Color _Primary = ColorTranslator.FromHtml("#409eff");
/// <summary>
/// Gets or sets the primary.
/// </summary>
/// <value>The primary.</value>
public static Color Primary
{
get { return _Primary; }
internal set { _Primary = value; }
}
/// <summary>
/// The success
/// </summary>
private static Color _Success = ColorTranslator.FromHtml("#67c23a");
/// <summary>
/// Gets or sets the success.
/// </summary>
/// <value>The success.</value>
public static Color Success
{
get { return _Success; }
internal set { _Success = value; }
}
/// <summary>
/// The warning
/// </summary>
private static Color _Warning = ColorTranslator.FromHtml("#e6a23c");
/// <summary>
/// Gets or sets the warning.
/// </summary>
/// <value>The warning.</value>
public static Color Warning
{
get { return _Warning; }
internal set { _Warning = value; }
}
/// <summary>
/// The danger
/// </summary>
private static Color _Danger = ColorTranslator.FromHtml("#f56c6c");
/// <summary>
/// Gets or sets the danger.
/// </summary>
/// <value>The danger.</value>
public static Color Danger
{
get { return _Danger; }
internal set { _Danger = value; }
}
/// <summary>
/// The information
/// </summary>
private static Color _Info = ColorTranslator.FromHtml("#909399");
/// <summary>
/// Gets or sets the information.
/// </summary>
/// <value>The information.</value>
public static Color Info
{
get { return _Info; }
internal set { _Info = value; }
}
}
}

View File

@@ -0,0 +1,100 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="TableColors.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace HZH_Controls
{
/// <summary>
/// Class TableColors.
/// </summary>
public class TableColors
{
/// <summary>
/// The green
/// </summary>
private static Color green = ColorTranslator.FromHtml("#c2e7b0");
/// <summary>
/// Gets the green.
/// </summary>
/// <value>The green.</value>
public static Color Green
{
get { return green; }
internal set { green = value; }
}
/// <summary>
/// The blue
/// </summary>
private static Color blue = ColorTranslator.FromHtml("#a3d0fd");
/// <summary>
/// Gets the blue.
/// </summary>
/// <value>The blue.</value>
public static Color Blue
{
get { return blue; }
internal set { blue = value; }
}
/// <summary>
/// The red
/// </summary>
private static Color red = ColorTranslator.FromHtml("#fbc4c4");
/// <summary>
/// Gets the red.
/// </summary>
/// <value>The red.</value>
public static Color Red
{
get { return red; }
internal set { red = value; }
}
/// <summary>
/// The yellow
/// </summary>
private static Color yellow = ColorTranslator.FromHtml("#f5dab1");
/// <summary>
/// Gets the yellow.
/// </summary>
/// <value>The yellow.</value>
public static Color Yellow
{
get { return yellow; }
internal set { yellow = value; }
}
/// <summary>
/// The gray
/// </summary>
private static Color gray = ColorTranslator.FromHtml("#d3d4d6");
/// <summary>
/// Gets the gray.
/// </summary>
/// <value>The gray.</value>
public static Color Gray
{
get { return gray; }
internal set { gray = value; }
}
}
}

View File

@@ -0,0 +1,86 @@
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-30
//
// ***********************************************************************
// <copyright file="TextColors.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHubhttps://github.com/kwwwvagaa/NetWinformControl
// giteehttps://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace HZH_Controls
{
/// <summary>
/// Class TextColor.
/// </summary>
public class TextColors
{
/// <summary>
/// The more light
/// </summary>
private static Color _MoreLight = ColorTranslator.FromHtml("#c0c4cc");
/// <summary>
/// Gets the more light.
/// </summary>
/// <value>The more light.</value>
public static Color MoreLight
{
get { return _MoreLight; }
internal set { _MoreLight = value; }
}
/// <summary>
/// The light
/// </summary>
private static Color _Light = ColorTranslator.FromHtml("#909399");
/// <summary>
/// Gets the light.
/// </summary>
/// <value>The light.</value>
public static Color Light
{
get { return _Light; }
internal set { _Light = value; }
}
/// <summary>
/// The dark
/// </summary>
private static Color _Dark = ColorTranslator.FromHtml("#606266");
/// <summary>
/// Gets the dark.
/// </summary>
/// <value>The dark.</value>
public static Color Dark
{
get { return _Dark; }
internal set { _Dark = value; }
}
/// <summary>
/// The more dark
/// </summary>
private static Color _MoreDark = ColorTranslator.FromHtml("#303133");
/// <summary>
/// Gets the more dark.
/// </summary>
/// <value>The more dark.</value>
public static Color MoreDark
{
get { return _MoreDark; }
internal set { _MoreDark = value; }
}
}
}