mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 16:00:24 +00:00
3.0
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
@@ -147,27 +146,30 @@ namespace XCharts.Runtime
|
||||
m_LineColor = ColorUtil.GetColor("#514D4D");
|
||||
m_TickColor = ColorUtil.GetColor("#514D4D");
|
||||
m_SplitLineColor = ColorUtil.GetColor("#51515120");
|
||||
m_SplitAreaColors = new List<Color32>{
|
||||
new Color32(250,250,250,77),
|
||||
new Color32(200,200,200,77)
|
||||
m_SplitAreaColors = new List<Color32>
|
||||
{
|
||||
new Color32(250, 250, 250, 77),
|
||||
new Color32(200, 200, 200, 77)
|
||||
};
|
||||
break;
|
||||
case ThemeType.Light:
|
||||
m_LineColor = ColorUtil.GetColor("#514D4D");
|
||||
m_TickColor = ColorUtil.GetColor("#514D4D");
|
||||
m_SplitLineColor = ColorUtil.GetColor("#51515120");
|
||||
m_SplitAreaColors = new List<Color32>{
|
||||
new Color32(250,250,250,77),
|
||||
new Color32(200,200,200,77)
|
||||
m_SplitAreaColors = new List<Color32>
|
||||
{
|
||||
new Color32(250, 250, 250, 77),
|
||||
new Color32(200, 200, 200, 77)
|
||||
};
|
||||
break;
|
||||
case ThemeType.Dark:
|
||||
m_LineColor = ColorUtil.GetColor("#B9B8CE");
|
||||
m_TickColor = ColorUtil.GetColor("#B9B8CE");
|
||||
m_SplitLineColor = ColorUtil.GetColor("#484753");
|
||||
m_SplitAreaColors = new List<Color32>{
|
||||
new Color32(255,255,255,(byte)(0.02f * 255)),
|
||||
new Color32(255,255,255,(byte)(0.05f * 255))
|
||||
m_SplitAreaColors = new List<Color32>
|
||||
{
|
||||
new Color32(255, 255, 255, (byte) (0.02f * 255)),
|
||||
new Color32(255, 255, 255, (byte) (0.05f * 255))
|
||||
};
|
||||
break;
|
||||
}
|
||||
@@ -195,32 +197,28 @@ namespace XCharts.Runtime
|
||||
public class AxisTheme : BaseAxisTheme
|
||||
{
|
||||
public AxisTheme(ThemeType theme) : base(theme)
|
||||
{
|
||||
}
|
||||
{ }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class RadiusAxisTheme : BaseAxisTheme
|
||||
{
|
||||
public RadiusAxisTheme(ThemeType theme) : base(theme)
|
||||
{
|
||||
}
|
||||
{ }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class AngleAxisTheme : BaseAxisTheme
|
||||
{
|
||||
public AngleAxisTheme(ThemeType theme) : base(theme)
|
||||
{
|
||||
}
|
||||
{ }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class PolarAxisTheme : BaseAxisTheme
|
||||
{
|
||||
public PolarAxisTheme(ThemeType theme) : base(theme)
|
||||
{
|
||||
}
|
||||
{ }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
#if dUI_TextMeshPro
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -103,7 +102,7 @@ namespace XCharts.Runtime
|
||||
break;
|
||||
case ThemeType.Dark:
|
||||
m_TextColor = ColorUtil.GetColor("#B9B8CE");
|
||||
m_FillerColor = new Color32(135, 163, 206, (byte)(0.2f * 255));
|
||||
m_FillerColor = new Color32(135, 163, 206, (byte) (0.2f * 255));
|
||||
m_BorderColor = ColorUtil.GetColor("#71708A");
|
||||
m_DataLineColor = ColorUtil.GetColor("#71708A");
|
||||
m_DataAreaColor = ColorUtil.GetColor("#71708A");
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
#if dUI_TextMeshPro
|
||||
@@ -31,7 +30,7 @@ namespace XCharts.Runtime
|
||||
public LegendTheme(ThemeType theme) : base(theme)
|
||||
{
|
||||
m_UnableColor = ColorUtil.GetColor("#cccccc");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace XCharts.Runtime
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
@@ -230,9 +229,8 @@ namespace XCharts.Runtime
|
||||
{
|
||||
Color color;
|
||||
ColorUtility.TryParseHtmlString(hexColorStr, out color);
|
||||
return (Color32)color;
|
||||
return (Color32) color;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace XCharts.Runtime
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -10,7 +9,7 @@ namespace XCharts.Runtime
|
||||
[SerializeField] protected float m_BorderWidth;
|
||||
[SerializeField] protected Color32 m_BorderColor;
|
||||
[SerializeField] protected Color32 m_BackgroundColor;
|
||||
[SerializeField] [Range(10, 50)] protected float m_TriangeLen = 20f;
|
||||
[SerializeField][Range(10, 50)] protected float m_TriangeLen = 20f;
|
||||
|
||||
/// <summary>
|
||||
/// the width of border.
|
||||
|
||||
Reference in New Issue
Block a user