You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
5.1 KiB

1 month ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Drawing;
  6. namespace Customize.Controls
  7. {
  8. internal class SkinTheme
  9. {
  10. #region initialize
  11. /// <summary>
  12. /// (构造函数).Initializes a new instance of the <see cref="SkinTheme"/> class.
  13. /// </summary>
  14. public SkinTheme()
  15. {
  16. this.IniSkinTheme();
  17. }
  18. #endregion
  19. #region protected methods
  20. /// <summary>
  21. /// 初始化主题色彩方案
  22. /// </summary>
  23. public virtual void IniSkinTheme()
  24. {
  25. }
  26. #endregion
  27. #region properties
  28. /// <summary>
  29. /// Gets or sets the theme style
  30. /// </summary>
  31. /// <value>The theme style.</value>
  32. public EnumTheme ThemeStyle { get; set; }
  33. /// <summary>
  34. /// 主题名称
  35. /// </summary>
  36. /// <value>The name of the theme.</value>
  37. public string ThemeName { get; set; }
  38. /// <summary>
  39. /// 主题背景图片
  40. /// </summary>
  41. /// <value>The back ground image.</value>
  42. public Bitmap BackGroundImage { get; set; }
  43. /// <summary>
  44. /// 主题背景图片透明度
  45. /// </summary>
  46. /// <value>The back ground image opacity.</value>
  47. public float BackGroundImageOpacity { get; set; }
  48. /// <summary>
  49. /// 主题背景图片是否可用
  50. /// </summary>
  51. /// <value>
  52. /// <c>true</c> if [back ground image enable]; otherwise, <c>false</c>.
  53. /// </value>
  54. public bool BackGroundImageEnable { get; set; }
  55. /// <summary>
  56. /// 基本色彩,用于控件或者区域的背景色
  57. /// </summary>
  58. public Color BaseColor { get; set; }
  59. /// <summary>
  60. /// 边框色彩
  61. /// </summary>
  62. public Color BorderColor { get; set; }
  63. /// <summary>
  64. /// 内边框色彩
  65. /// </summary>
  66. public Color InnerBorderColor { get; set; }
  67. /// <summary>
  68. /// 外边框色彩(用于控件的阴影效果的绘制)
  69. /// </summary>
  70. public Color OuterBorderColor { get; set; }
  71. /// <summary>
  72. /// 默认控件色彩
  73. /// </summary>
  74. public GradientColor DefaultControlColor { get; set; }
  75. /// <summary>
  76. /// 高亮控件色彩
  77. /// </summary>
  78. public GradientColor HeightLightControlColor { get; set; }
  79. /// <summary>
  80. /// 焦点控件色彩
  81. /// </summary>
  82. public GradientColor FocusedControlColor { get; set; }
  83. /// <summary>
  84. /// 不可用状态的渲染色彩
  85. /// </summary>
  86. public Color UselessColor { get; set; }
  87. /// <summary>
  88. /// 窗口标题栏色彩
  89. /// Gets or sets the color of the caption.
  90. /// </summary>
  91. /// <value>The color of the caption.</value>
  92. public GradientColor CaptionColor { get; set; }
  93. /// <summary>
  94. /// 窗口标题颜色
  95. /// </summary>
  96. /// <value>The color of the caption font.</value>
  97. public Color CaptionFontColor { get; set; }
  98. /// <summary>
  99. /// 主题颜色(窗体背景色)
  100. /// Gets or sets the color of the theme.
  101. /// </summary>
  102. /// <value>The color of the theme.</value>
  103. public Color ThemeColor { get; set; }
  104. /// <summary>
  105. /// 窗体关闭按钮高亮颜色
  106. /// Gets or sets the color of the close box height light.
  107. /// </summary>
  108. /// <value>The color of the close box height light.</value>
  109. public GradientColor CloseBoxHeightLightColor { get; set; }
  110. /// <summary>
  111. /// 窗体关闭按钮按下渲染色彩
  112. /// Gets or sets the color of the close box pressed.
  113. /// </summary>
  114. /// <value>The color of the close box pressed.</value>
  115. public GradientColor CloseBoxPressedColor { get; set; }
  116. /// <summary>
  117. /// 窗体控制按钮默认色彩
  118. /// Gets or sets the control box default colo
  119. /// </summary>
  120. /// <value>The control box default colo.</value>
  121. public GradientColor ControlBoxDefaultColor { get; set; }
  122. /// <summary>
  123. /// 窗体控制按钮高亮渲染色彩
  124. /// Gets or sets the color of the control box height light.
  125. /// </summary>
  126. /// <value>The color of the control box height light.</value>
  127. public GradientColor ControlBoxHeightLightColor { get; set; }
  128. /// <summary>
  129. /// 窗体控制按钮按下渲染色彩
  130. /// Gets or sets the color of the control box pressed.
  131. /// </summary>
  132. /// <value>The color of the control box pressed.</value>
  133. public GradientColor ControlBoxPressedColor { get; set; }
  134. /// <summary>
  135. /// 窗体按钮图案标记的颜色
  136. /// Gets or sets the color of the control box flag.
  137. /// </summary>
  138. /// <value>The color of the control box flag.</value>
  139. public Color ControlBoxFlagColor { get; set; }
  140. #endregion
  141. }
  142. }