mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 09:50:15 +00:00
XCharts 2.0
This commit is contained in:
31
Runtime/Component/Theme/TitleTheme.cs
Normal file
31
Runtime/Component/Theme/TitleTheme.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
/************************************************/
|
||||
/* */
|
||||
/* Copyright (c) 2018 - 2021 monitor1394 */
|
||||
/* https://github.com/monitor1394 */
|
||||
/* */
|
||||
/************************************************/
|
||||
|
||||
using System;
|
||||
|
||||
namespace XCharts
|
||||
{
|
||||
[Serializable]
|
||||
public class TitleTheme : ComponentTheme
|
||||
{
|
||||
public TitleTheme(Theme theme) : base(theme)
|
||||
{
|
||||
m_FontSize = XChartsSettings.fontSizeLv1;
|
||||
switch (theme)
|
||||
{
|
||||
case Theme.Default:
|
||||
m_TextColor = ColorUtil.GetColor("#514D4D");
|
||||
break;
|
||||
case Theme.Light:
|
||||
break;
|
||||
case Theme.Dark:
|
||||
m_TextColor = ColorUtil.GetColor("#EEF1FA");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user