protected override void Awake()
 {
     themeInfo = ThemeInfo.Dark;
     rectTransform.anchorMax = Vector2.zero;
     rectTransform.anchorMin = Vector2.zero;
     rectTransform.pivot     = Vector2.zero;
     InitTitle();
     InitLegend();
 }
Beispiel #2
0
 protected override void Awake()
 {
     themeInfo = ThemeInfo.Dark;
     rectTransform.anchorMax = Vector2.zero;
     rectTransform.anchorMin = Vector2.zero;
     rectTransform.pivot     = Vector2.zero;
     checkWid   = chartWid;
     checkHig   = chartHig;
     checkTheme = theme;
     InitTitle();
     InitLegend();
     InitTooltip();
 }
Beispiel #3
0
 public void Copy(ThemeInfo theme)
 {
     font               = theme.font;
     backgroundColor    = theme.backgroundColor;
     contrastColor      = theme.contrastColor;
     unableColor        = theme.unableColor;
     textColor          = theme.textColor;
     subTextColor       = theme.subTextColor;
     axisLineColor      = theme.axisLineColor;
     axisSplitLineColor = theme.axisSplitLineColor;
     colorPalette       = new Color[theme.colorPalette.Length];
     for (int i = 0; i < theme.colorPalette.Length; i++)
     {
         colorPalette[i] = theme.colorPalette[i];
     }
 }
Beispiel #4
0
        protected override void OnThemeChanged()
        {
            base.OnThemeChanged();
            radarInfo.backgroundColorList.Clear();
            switch (theme)
            {
            case Theme.Dark:
                radarInfo.backgroundColorList.Add(ThemeInfo.GetColor("#6f6f6f"));
                radarInfo.backgroundColorList.Add(ThemeInfo.GetColor("#606060"));
                break;

            case Theme.Default:
                radarInfo.backgroundColorList.Add(ThemeInfo.GetColor("#f6f6f6"));
                radarInfo.backgroundColorList.Add(ThemeInfo.GetColor("#e7e7e7"));
                break;

            case Theme.Light:
                radarInfo.backgroundColorList.Add(ThemeInfo.GetColor("#f6f6f6"));
                radarInfo.backgroundColorList.Add(ThemeInfo.GetColor("#e7e7e7"));
                break;
            }
            InitIndicator();
        }