private string GetUnconfirmedEmailFormatText(ProfileAccountSectionUIComponent screen) { string newValue = getColorFormattedEmail(screen, "%UNCEMAIL%"); return($"<size={screen.EmailMessageSize}>{screen.UnconfirmedLocalization.Value.Replace("%EMAIL%", newValue)}</size>"); }
private static string getColorFormattedEmail(ProfileAccountSectionUIComponent screen, string type = "%EMAIL%") => string.Format("<color=#{1}>{0}</color>", type, screen.EmailColor.ToHexString());