public Color this[ThemeElementType type] { get { switch (type) { case ThemeElementType.Normal: return(normal); case ThemeElementType.Highlighted: return(highlighted); case ThemeElementType.Pressed: return(pressed); case ThemeElementType.Disabled: return(disabled); case ThemeElementType.Text: return(text); default: return(Color.white); } } }
public Color32 GetThemeColor(ThemeElementType te) { switch (te) { case ThemeElementType.Spike: return(spikeColors[themeIndex]); case ThemeElementType.Wall: return(wallColors[themeIndex]); case ThemeElementType.BG: return(bgColors[themeIndex]); case ThemeElementType.PS: return(psColors[themeIndex]); } return(Color.white); }
public static Color GetColor(ThemeElementType type) { return(currentManager.current[type]); }