mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 17:00:08 +00:00
3.0 - unitypackage
This commit is contained in:
26
Runtime/Theme/SubTitleTheme.cs
Normal file
26
Runtime/Theme/SubTitleTheme.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace XCharts
|
||||
{
|
||||
[Serializable]
|
||||
public class SubTitleTheme : ComponentTheme
|
||||
{
|
||||
public SubTitleTheme(ThemeType theme) : base(theme)
|
||||
{
|
||||
m_FontSize = XCSettings.fontSizeLv2;
|
||||
switch (theme)
|
||||
{
|
||||
case ThemeType.Default:
|
||||
m_TextColor = ColorUtil.GetColor("#969696");
|
||||
break;
|
||||
case ThemeType.Light:
|
||||
m_TextColor = ColorUtil.GetColor("#969696");
|
||||
break;
|
||||
case ThemeType.Dark:
|
||||
m_TextColor = ColorUtil.GetColor("#B9B8CE");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user