Files
XCharts/Runtime/Theme/LegendTheme.cs

36 lines
812 B
C#
Raw Normal View History

2021-01-11 08:54:28 +08:00
using System;
using UnityEngine;
#if dUI_TextMeshPro
using TMPro;
#endif
2022-02-19 22:37:57 +08:00
namespace XCharts.Runtime
2021-01-11 08:54:28 +08:00
{
[Serializable]
public class LegendTheme : ComponentTheme
{
[SerializeField] protected Color m_UnableColor;
/// <summary>
/// the color of text.
2022-03-24 08:37:06 +08:00
/// |文本颜色。
2021-01-11 08:54:28 +08:00
/// </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;
}
2021-11-23 13:20:07 +08:00
public LegendTheme(ThemeType theme) : base(theme)
2021-01-11 08:54:28 +08:00
{
m_UnableColor = ColorUtil.GetColor("#cccccc");
2022-05-22 22:17:38 +08:00
2021-01-11 08:54:28 +08:00
}
}
}