AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
TitleTheme.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 using System;
9 
10 namespace XCharts
11 {
12  [Serializable]
13  public class TitleTheme : ComponentTheme
14  {
15  public TitleTheme(Theme theme) : base(theme)
16  {
17  m_FontSize = XChartsSettings.fontSizeLv1;
18  switch (theme)
19  {
20  case Theme.Default:
21  m_TextColor = ColorUtil.GetColor("#514D4D");
22  break;
23  case Theme.Light:
24  break;
25  case Theme.Dark:
26  m_TextColor = ColorUtil.GetColor("#EEF1FA");
27  break;
28  }
29  }
30  }
31 }
XCharts.Theme
Theme
主题
Definition: ChartTheme.cs:21
XCharts
Definition: RewardChart.cs:14
XCharts.XChartsSettings.fontSizeLv1
static int fontSizeLv1
一级字体大小。
Definition: XChartsSettings.cs:81
XCharts.TitleTheme
Definition: TitleTheme.cs:13
XCharts.ComponentTheme
Definition: ComponentTheme.cs:17
XCharts.XChartsSettings
Definition: XChartsSettings.cs:25