protected override void Awake() { themeInfo = ThemeInfo.Dark; rectTransform.anchorMax = Vector2.zero; rectTransform.anchorMin = Vector2.zero; rectTransform.pivot = Vector2.zero; InitTitle(); InitLegend(); }
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(); }
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]; } }
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(); }