Index: ios/chrome/browser/ui/settings/translate_collection_view_controller.mm |
diff --git a/ios/chrome/browser/ui/settings/translate_collection_view_controller.mm b/ios/chrome/browser/ui/settings/translate_collection_view_controller.mm |
index bd4a0f97198ad62a8ef5310841cfbd9a0cc8d1eb..ef4a29c9c4c7e60db95ce4a0c50e0f57f25d5efc 100644 |
--- a/ios/chrome/browser/ui/settings/translate_collection_view_controller.mm |
+++ b/ios/chrome/browser/ui/settings/translate_collection_view_controller.mm |
@@ -28,7 +28,7 @@ |
#include "ios/chrome/grit/ios_strings.h" |
#import "ios/third_party/material_components_ios/src/components/Palettes/src/MaterialPalettes.h" |
#import "ios/third_party/material_components_ios/src/components/Snackbar/src/MaterialSnackbar.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" |
@@ -107,6 +107,7 @@ NSString* const kTranslateSettingsCategory = @"ChromeTranslateSettings"; |
initWithType:ItemTypeResetTranslate] autorelease]; |
resetTranslate.text = l10n_util::GetNSString(IDS_IOS_TRANSLATE_SETTING_RESET); |
resetTranslate.accessibilityTraits |= UIAccessibilityTraitButton; |
+ resetTranslate.textFont = [MDCTypography body2Font]; |
[model addItem:resetTranslate |
toSectionWithIdentifier:SectionIdentifierTranslate]; |
@@ -140,13 +141,6 @@ NSString* const kTranslateSettingsCategory = @"ChromeTranslateSettings"; |
forControlEvents:UIControlEventValueChanged]; |
break; |
} |
- case ItemTypeResetTranslate: { |
- MDCCollectionViewTextCell* textCell = |
- base::mac::ObjCCastStrict<MDCCollectionViewTextCell>(cell); |
- textCell.textLabel.font = |
- [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14]; |
- break; |
- } |
default: |
break; |
} |