| 123456789101112131415161718192021222324252627282930313233343536 | using System;using UnityEngine;#if dUI_TextMeshProusing TMPro;#endifnamespace XCharts.Runtime{    [Serializable]    public class LegendTheme : ComponentTheme    {        [SerializeField] protected Color m_UnableColor;        /// <summary>        /// the color of text.        /// ||文本颜色。        /// </summary>        public Color unableColor        {            get { return m_UnableColor; }            set { if (PropertyUtil.SetColor(ref m_UnableColor, value)) SetComponentDirty(); }        }        public void Copy(LegendTheme theme)        {            base.Copy(theme);            m_UnableColor = theme.unableColor;        }        public LegendTheme(ThemeType theme) : base(theme)        {            m_UnableColor = ColorUtil.GetColor("#cccccc");        }    }}
 |