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