mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 03:58:49 +00:00
优化Theme
This commit is contained in:
@@ -152,7 +152,7 @@ namespace XCharts
|
||||
|
||||
public static bool AddJsonTheme(TextAsset theme)
|
||||
{
|
||||
if (theme == null) return false;
|
||||
if (theme == null || string.IsNullOrEmpty(theme.text)) return false;
|
||||
if (!Instance.m_CustomThemes.Contains(theme))
|
||||
{
|
||||
Instance.m_CustomThemes.Add(theme);
|
||||
|
||||
Reference in New Issue
Block a user