优化Legend的颜色可自动匹配ItemStyle的自定义颜色#89

This commit is contained in:
monitor1394
2020-09-08 09:28:19 +08:00
parent c01493bcaa
commit d65209ced5
6 changed files with 44 additions and 4 deletions

View File

@@ -464,7 +464,7 @@ namespace XCharts
var legendIndex = m_LegendRealShowName.IndexOf(legendName);
if (legendIndex >= 0)
{
var iconColor = LegendHelper.GetIconColor(legend, legendIndex, m_ThemeInfo, active);
var iconColor = LegendHelper.GetIconColor(legend, legendIndex, m_ThemeInfo, m_Series, legendName, active);
var contentColor = LegendHelper.GetContentColor(legend, m_ThemeInfo, active);
m_Legend.UpdateButtonColor(legendName, iconColor);
m_Legend.UpdateContentColor(legendName, contentColor);