| Index: ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm
|
| diff --git a/ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm b/ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm
|
| index d7209692c03e32a51577b71cb8e38c95ab330772..2d3d979299d310d3d7c3ff7c5b3f10f33fc7dd19 100644
|
| --- a/ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm
|
| +++ b/ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm
|
| @@ -12,7 +12,7 @@
|
| #include "ios/chrome/common/string_util.h"
|
| #include "ios/chrome/grit/ios_strings.h"
|
| #import "ios/third_party/material_components_ios/src/components/Buttons/src/MaterialButtons.h"
|
| -#import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoFontLoader.h"
|
| +#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "url/gurl.h"
|
|
|
| @@ -28,8 +28,6 @@ const int kButtonHeight = 36;
|
| const int kButtonMinWidth = 88;
|
| const int kDividerHeight = 1;
|
|
|
| -const int kTextFontSize = 16;
|
| -const int kButtonFontSize = 14;
|
| const CGFloat kTextColorGrayShade = 0.494;
|
| const int kLinkColorRGB = 0x5D9AFF;
|
|
|
| @@ -94,8 +92,7 @@ const CGFloat kCloseDuration = ios::material::kDuration1;
|
| [paragraphStyle setLineHeightMultiple:kLineSpace];
|
| NSDictionary* attributes = @{
|
| NSParagraphStyleAttributeName : paragraphStyle,
|
| - NSFontAttributeName :
|
| - [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:kTextFontSize],
|
| + NSFontAttributeName : [MDCTypography subheadFont],
|
| NSForegroundColorAttributeName :
|
| [UIColor colorWithWhite:kTextColorGrayShade alpha:1]
|
| };
|
| @@ -110,8 +107,7 @@ const CGFloat kCloseDuration = ios::material::kDuration1;
|
| url:GURL("contextualSearch://settings")];
|
| text.numberOfLines = 0;
|
|
|
| - UIFont* buttonFont =
|
| - [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:kButtonFontSize];
|
| + UIFont* buttonFont = [MDCTypography buttonFont];
|
|
|
| // Create accept and decline buttons with dimensions defined by the
|
| // minimum height and width constants.
|
|
|