Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: ios/chrome/browser/ui/autofill/cells/cvc_item.mm

Issue 2912863005: Use MDCTypography instead of MDFRobotoFontLoader directly. (Closed)
Patch Set: Tentative fix for ManualTextFramerTest Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/autofill/cells/cvc_item.mm
diff --git a/ios/chrome/browser/ui/autofill/cells/cvc_item.mm b/ios/chrome/browser/ui/autofill/cells/cvc_item.mm
index 62de222a0cc6a2f4eeed3604343b08bce47f9033..978a106a3fdf4838045c9ece6c176487d3553ee0 100644
--- a/ios/chrome/browser/ui/autofill/cells/cvc_item.mm
+++ b/ios/chrome/browser/ui/autofill/cells/cvc_item.mm
@@ -11,7 +11,7 @@
#import "ios/public/provider/chrome/browser/chrome_browser_provider.h"
#import "ios/public/provider/chrome/browser/ui/text_field_styling.h"
#import "ios/third_party/material_components_ios/src/components/Palettes/src/MaterialPalettes.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"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -117,7 +117,7 @@ const CGFloat kCVCTextFieldWidth = 60;
_instructionsTextLabel = [[UILabel alloc] init];
_instructionsTextLabel.font =
- [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14];
+ [[MDCTypography fontLoader] mediumFontOfSize:14];
_instructionsTextLabel.textColor = [[MDCPalette greyPalette] tint500];
_instructionsTextLabel.numberOfLines = 0;
_instructionsTextLabel.lineBreakMode = NSLineBreakByWordWrapping;
@@ -125,8 +125,7 @@ const CGFloat kCVCTextFieldWidth = 60;
[contentView addSubview:_instructionsTextLabel];
_errorLabel = [[UILabel alloc] init];
- _errorLabel.font =
- [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:12];
+ _errorLabel.font = [[MDCTypography fontLoader] regularFontOfSize:12];
_errorLabel.textColor = [[MDCPalette cr_redPalette] tint500];
_errorLabel.numberOfLines = 0;
_errorLabel.lineBreakMode = NSLineBreakByWordWrapping;
@@ -180,7 +179,7 @@ const CGFloat kCVCTextFieldWidth = 60;
_buttonForNewCard = [UIButton buttonWithType:UIButtonTypeCustom];
_buttonForNewCard.titleLabel.font =
- [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:12];
+ [[MDCTypography fontLoader] regularFontOfSize:12];
[_buttonForNewCard
setTitle:l10n_util::GetNSString(IDS_AUTOFILL_CARD_UNMASK_NEW_CARD_LINK)
forState:UIControlStateNormal];
« no previous file with comments | « ios/chrome/browser/ui/autofill/cells/autofill_edit_item.mm ('k') | ios/chrome/browser/ui/autofill/cells/status_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698