Açıklama Yok
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.

LegendTheme.cs 812B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using UnityEngine;
  3. #if dUI_TextMeshPro
  4. using TMPro;
  5. #endif
  6. namespace XCharts.Runtime
  7. {
  8. [Serializable]
  9. public class LegendTheme : ComponentTheme
  10. {
  11. [SerializeField] protected Color m_UnableColor;
  12. /// <summary>
  13. /// the color of text.
  14. /// |文本颜色。
  15. /// </summary>
  16. public Color unableColor
  17. {
  18. get { return m_UnableColor; }
  19. set { if (PropertyUtil.SetColor(ref m_UnableColor, value)) SetComponentDirty(); }
  20. }
  21. public void Copy(LegendTheme theme)
  22. {
  23. base.Copy(theme);
  24. m_UnableColor = theme.unableColor;
  25. }
  26. public LegendTheme(ThemeType theme) : base(theme)
  27. {
  28. m_UnableColor = ColorUtil.GetColor("#cccccc");
  29. }
  30. }
  31. }