GradientColors.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // ***********************************************************************
  2. // Assembly : HZH_Controls
  3. // Created : 2019-09-30
  4. //
  5. // ***********************************************************************
  6. // <copyright file="GradientColors.cs">
  7. // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
  8. // </copyright>
  9. //
  10. // Blog: https://www.cnblogs.com/bfyx
  11. // GitHub:https://github.com/kwwwvagaa/NetWinformControl
  12. // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
  13. //
  14. // If you use this code, please keep this note.
  15. // ***********************************************************************
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Drawing;
  19. using System.Linq;
  20. using System.Text;
  21. namespace HZH_Controls
  22. {
  23. /// <summary>
  24. /// Class GradientColors.
  25. /// </summary>
  26. public class GradientColors
  27. {
  28. /// <summary>
  29. /// The orange
  30. /// </summary>
  31. private static Color[] orange = new Color[] { Color.FromArgb(252, 196, 136), Color.FromArgb(243, 138, 159) };
  32. /// <summary>
  33. /// Gets the orange.
  34. /// </summary>
  35. /// <value>The orange.</value>
  36. public static Color[] Orange
  37. {
  38. get { return GradientColors.orange; }
  39. internal set { GradientColors.orange = value; }
  40. }
  41. /// <summary>
  42. /// The light green
  43. /// </summary>
  44. private static Color[] lightGreen = new Color[] { Color.FromArgb(210, 251, 123), Color.FromArgb(152, 231, 160) };
  45. /// <summary>
  46. /// Gets the light green.
  47. /// </summary>
  48. /// <value>The light green.</value>
  49. public static Color[] LightGreen
  50. {
  51. get { return GradientColors.lightGreen; }
  52. internal set { GradientColors.lightGreen = value; }
  53. }
  54. /// <summary>
  55. /// The green
  56. /// </summary>
  57. private static Color[] green = new Color[] { Color.FromArgb(138, 241, 124), Color.FromArgb(32, 190, 179) };
  58. /// <summary>
  59. /// Gets the green.
  60. /// </summary>
  61. /// <value>The green.</value>
  62. public static Color[] Green
  63. {
  64. get { return GradientColors.green; }
  65. internal set { GradientColors.green = value; }
  66. }
  67. /// <summary>
  68. /// The blue
  69. /// </summary>
  70. private static Color[] blue = new Color[] { Color.FromArgb(193, 232, 251), Color.FromArgb(162, 197, 253) };
  71. /// <summary>
  72. /// Gets the blue.
  73. /// </summary>
  74. /// <value>The blue.</value>
  75. public static Color[] Blue
  76. {
  77. get { return GradientColors.blue; }
  78. internal set { GradientColors.blue = value; }
  79. }
  80. /// <summary>
  81. /// The blue green
  82. /// </summary>
  83. private static Color[] blueGreen = new Color[] { Color.FromArgb(122, 251, 218), Color.FromArgb(16, 193, 252) };
  84. /// <summary>
  85. /// Gets the blue green.
  86. /// </summary>
  87. /// <value>The blue green.</value>
  88. public static Color[] BlueGreen
  89. {
  90. get { return GradientColors.blueGreen; }
  91. internal set { GradientColors.blueGreen = value; }
  92. }
  93. /// <summary>
  94. /// The light violet
  95. /// </summary>
  96. private static Color[] lightViolet = new Color[] { Color.FromArgb(248, 192, 234), Color.FromArgb(164, 142, 210) };
  97. /// <summary>
  98. /// Gets the light violet.
  99. /// </summary>
  100. /// <value>The light violet.</value>
  101. public static Color[] LightViolet
  102. {
  103. get { return GradientColors.lightViolet; }
  104. internal set { GradientColors.lightViolet = value; }
  105. }
  106. /// <summary>
  107. /// The violet
  108. /// </summary>
  109. private static Color[] violet = new Color[] { Color.FromArgb(185, 154, 241), Color.FromArgb(137, 124, 242) };
  110. /// <summary>
  111. /// Gets the violet.
  112. /// </summary>
  113. /// <value>The violet.</value>
  114. public static Color[] Violet
  115. {
  116. get { return GradientColors.violet; }
  117. internal set { GradientColors.violet = value; }
  118. }
  119. /// <summary>
  120. /// The gray
  121. /// </summary>
  122. private static Color[] gray = new Color[] { Color.FromArgb(233, 238, 239), Color.FromArgb(147, 162, 175) };
  123. /// <summary>
  124. /// Gets the gray.
  125. /// </summary>
  126. /// <value>The gray.</value>
  127. public static Color[] Gray
  128. {
  129. get { return GradientColors.gray; }
  130. internal set { GradientColors.gray = value; }
  131. }
  132. }
  133. }