优化主题Theme的导入和字体自动刷新 (#148)

This commit is contained in:
monitor1394
2021-06-12 14:32:23 +08:00
parent c9f6e9ef66
commit 998a066c59
15 changed files with 272 additions and 69 deletions

View File

@@ -25,13 +25,13 @@ namespace XCharts
#endif
/// <summary>
/// the font of text
/// the font of text.
/// 字体。
/// </summary>
public Font font
{
get { return m_Font; }
set { if (PropertyUtil.SetClass(ref m_Font, value)) SetComponentDirty(); }
set { m_Font = value; SetComponentDirty(); }
}
/// <summary>
/// the color of text.
@@ -69,7 +69,7 @@ namespace XCharts
public TMP_FontAsset tmpFont
{
get { return m_TMPFont; }
set { if (PropertyUtil.SetClass(ref m_TMPFont, value)) SetComponentDirty(); }
set { m_TMPFont = value; SetComponentDirty(); }
}
#endif