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

Unified Diff: ios/chrome/browser/ui/collection_view/cells/collection_view_account_item.mm

Issue 2912863005: Use MDCTypography instead of MDFRobotoFontLoader directly. (Closed)
Patch Set: Revert main_controller 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/collection_view/cells/collection_view_account_item.mm
diff --git a/ios/chrome/browser/ui/collection_view/cells/collection_view_account_item.mm b/ios/chrome/browser/ui/collection_view/cells/collection_view_account_item.mm
index e13bbc5bda68b42dbb5a51000e030643eda3a1ca..c5eded1741de4f25195c1b1be0dd12892c111c57 100644
--- a/ios/chrome/browser/ui/collection_view/cells/collection_view_account_item.mm
+++ b/ios/chrome/browser/ui/collection_view/cells/collection_view_account_item.mm
@@ -7,7 +7,7 @@
#include "base/mac/foundation_util.h"
#import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.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)
@@ -140,10 +140,9 @@ const CGFloat kHorizontalErrorIconFixedSize = 25;
_imageView.contentMode = UIViewContentModeCenter;
_imageView.layer.masksToBounds = YES;
- _textLabel.font = [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14];
+ _textLabel.font = [MDCTypography body2Font];
_textLabel.textColor = [[MDCPalette greyPalette] tint900];
- _detailTextLabel.font =
- [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:14];
+ _detailTextLabel.font = [MDCTypography body1Font];
_detailTextLabel.textColor = [[MDCPalette greyPalette] tint500];
_imageView.contentMode = UIViewContentModeScaleAspectFit;
}

Powered by Google App Engine
This is Rietveld 408576698