增加ThemeUnbind按钮用于解绑复制图表时的主题 #118

This commit is contained in:
monitor1394
2021-03-22 03:26:16 +08:00
parent 9bde7029a2
commit ea13f674bc
5 changed files with 29 additions and 3 deletions

View File

@@ -304,6 +304,17 @@ namespace XCharts
}
}
/// <summary>
/// 克隆主题。
/// </summary>
/// <returns></returns>
public ChartTheme CloneTheme()
{
var theme = ScriptableObject.CreateInstance<ChartTheme>();
InitChartComponentTheme(theme);
theme.CopyTheme(this);
return theme;
}
/// <summary>