mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 16:00:24 +00:00
增加Theme的Unbind按钮用于解绑复制图表时的主题 #118
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user