This commit is contained in:
monitor1394
2022-05-22 22:17:38 +08:00
parent 003f4da9de
commit bafe032bb9
391 changed files with 3718 additions and 2774 deletions

View File

@@ -1,8 +1,7 @@
using System.Collections.Generic;
using UnityEngine;
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
#if dUI_TextMeshPro
using TMPro;
#endif
@@ -56,7 +55,6 @@ namespace XCharts.Runtime
set { PropertyUtil.SetClass(ref m_ThemeName, value); }
}
/// <summary>
/// the contrast color of chart.
/// |对比色。
@@ -247,8 +245,12 @@ namespace XCharts.Runtime
{
switch (m_ThemeType)
{
case ThemeType.Default: ResetToDefaultTheme(this); return true;
case ThemeType.Dark: ResetToDarkTheme(this); return true;
case ThemeType.Default:
ResetToDefaultTheme(this);
return true;
case ThemeType.Dark:
ResetToDarkTheme(this);
return true;
case ThemeType.Custom:
return false;
}
@@ -267,7 +269,6 @@ namespace XCharts.Runtime
return theme;
}
/// <summary>
/// default theme.
/// |默认主题。
@@ -383,7 +384,7 @@ namespace XCharts.Runtime
{
Color color;
ColorUtility.TryParseHtmlString(hexColorStr, out color);
return (Color32)color;
return (Color32) color;
}
public void SetColorPalette(List<string> hexColorStringList)