public Color GetColor(ThemeComponents component) { switch (component) { case ThemeComponents.Background: return(backgroundColor); case ThemeComponents.SmallKey: return(smallKeysColor); case ThemeComponents.MediumKeyNormal: return(mediumKeysNormalColor); case ThemeComponents.MediumKeyConfirm: return(mediumKeysConfirmColor); case ThemeComponents.MediumKeyDanger: return(mediumKeysDangerColor); case ThemeComponents.Spacebar: return(spacebarColor); case ThemeComponents.Text: return(textColor); default: return(Color.black); } }
public Color GetComponentColor(ThemeComponents component) { themes.TryGetValue(currentTheme, out var _colorPallet); return(_colorPallet.GetColor(component)); }