protected virtual void UpdateLegendColor(string legendName, bool active) { var legendIndex = m_LegendRealShowName.IndexOf(legendName); if (legendIndex >= 0) { var iconColor = LegendHelper.GetIconColor(legend, legendIndex, m_ThemeInfo, active); var contentColor = LegendHelper.GetContentColor(legend, m_ThemeInfo, active); m_Legend.UpdateButtonColor(legendName, iconColor); m_Legend.UpdateContentColor(legendName, contentColor); } }
internal virtual void UpdateLegendColor(string legendName, bool active) { var legendIndex = m_LegendRealShowName.IndexOf(legendName); if (legendIndex >= 0) { foreach (var legend in m_Legends) { var iconColor = LegendHelper.GetIconColor(legend, legendIndex, m_Theme, m_Series, legendName, active); var contentColor = LegendHelper.GetContentColor(legend, m_Theme, active); legend.UpdateButtonColor(legendName, iconColor); legend.UpdateContentColor(legendName, contentColor); } } }