mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 00:20:18 +00:00
3.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user