UIStyleDefine.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* UNI-Trend Oscilloscope(MSO7000X) Host自定义控件库
  2. * CopyRight:UN-ITrend
  3. * Gitee:https://gitee.com/wang_changjie_101/nav-bar-group-test
  4. * ***********************************************
  5. * 文件名称:UIStyleDefine.cs
  6. * 文件说明:UI风格统一定义类
  7. * 当前版本:V1.0
  8. * 创建日期:20210519
  9. */
  10. using System;
  11. using System.Collections.Generic;
  12. using System.Drawing;
  13. using System.Linq;
  14. using System.Text;
  15. using System.Threading.Tasks;
  16. namespace Uni_Trend.MSO7000X.UserControls
  17. {
  18. public class UIStyleDefine
  19. {
  20. //外观常量定义
  21. /// <summary>
  22. /// 标题区域的背景颜色
  23. /// </summary>
  24. public static Color TitleBackColor = Color.FromArgb(0xFF, 0x29, 0x2A, 0x2D);
  25. /// <summary>
  26. /// 内容区域的背景颜色
  27. /// </summary>
  28. public static Color ContextBackColor = Color.FromArgb(0xFF, 0x0F, 0x0F, 0x0F);
  29. /// <summary>
  30. /// 控件对应的蓝色
  31. /// </summary>
  32. public static Color ControlBlueColor = Color.FromArgb(0xFF, 0, 0x9D, 0xFF);
  33. }
  34. /// <summary>
  35. /// 圆角位置
  36. /// </summary>
  37. public enum UICornerRadiusSides
  38. {
  39. /// <summary>
  40. /// 四个角都有圆角。
  41. /// </summary>
  42. All = 15, // 0x0000000F
  43. /// <summary>
  44. /// 左下角有圆角
  45. /// </summary>
  46. LeftBottom = 8,
  47. /// <summary>
  48. /// 左上角有圆角
  49. /// </summary>
  50. LeftTop = 1,
  51. /// <summary>
  52. /// 右下角有圆角
  53. /// </summary>
  54. RightBottom = 4,
  55. /// <summary>
  56. /// 右上角有圆角
  57. /// </summary>
  58. RightTop = 2,
  59. /// <summary>
  60. /// 没有圆角
  61. /// </summary>
  62. None = 0,
  63. }
  64. }