public static UIColor GetTitleColor(this InformationMessage message) { switch (message) { case InformationMessage.UploadFailure: case InformationMessage.InternalEngineError: return(StyleSettings.ErrorColor()); default: return(StyleSettings.ThemePrimaryColor()); } }