mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 02:40:13 +00:00
修复Tooltip的圆点标记不会自适应颜色的问题
This commit is contained in:
@@ -71,6 +71,8 @@ slug: /changelog
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2024.02.19) 修复`Tooltip`的圆点标记不会自适应颜色的问题
|
||||||
|
|
||||||
## v3.10.0
|
## v3.10.0
|
||||||
|
|
||||||
版本要点:
|
版本要点:
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ namespace XCharts.Runtime
|
|||||||
title.SetText(data.title);
|
title.SetText(data.title);
|
||||||
|
|
||||||
m_ColumnMaxWidth.Clear();
|
m_ColumnMaxWidth.Clear();
|
||||||
|
var contentLabelStyle0 = tooltip.GetContentLabelStyle(0);
|
||||||
for (int i = 0; i < data.param.Count; i++)
|
for (int i = 0; i < data.param.Count; i++)
|
||||||
{
|
{
|
||||||
var item = GetItem(i);
|
var item = GetItem(i);
|
||||||
@@ -92,7 +93,7 @@ namespace XCharts.Runtime
|
|||||||
column.SetActive(true);
|
column.SetActive(true);
|
||||||
column.SetText(param.columns[j]);
|
column.SetText(param.columns[j]);
|
||||||
|
|
||||||
if (j == 0 && ChartHelper.IsClearColor(column.text.GetColor()))
|
if (j == 0 && contentLabelStyle0 && ChartHelper.IsClearColor(contentLabelStyle0.textStyle.color))
|
||||||
column.text.SetColor(param.color);
|
column.text.SetColor(param.color);
|
||||||
|
|
||||||
if (j >= m_ColumnMaxWidth.Count)
|
if (j >= m_ColumnMaxWidth.Count)
|
||||||
|
|||||||
Reference in New Issue
Block a user