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

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

Issue 2912863005: Use MDCTypography instead of MDFRobotoFontLoader directly. (Closed)
Patch Set: Update target value in unit test 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_text_item.mm
diff --git a/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm b/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm
index f6d4a0057b1cf8e52583e164cfc14aa7e608dabc..ac6905b3ca6a9416d7a7daff74eff59a21bfeee1 100644
--- a/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm
+++ b/ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.mm
@@ -6,7 +6,7 @@
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_text_cell.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"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
@@ -36,7 +36,7 @@
- (UIFont*)textFont {
if (!_textFont) {
- _textFont = [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14];
+ _textFont = [[MDCTypography fontLoader] mediumFontOfSize:14];
}
return _textFont;
}
@@ -50,8 +50,7 @@
- (UIFont*)detailTextFont {
if (!_detailTextFont) {
- _detailTextFont =
- [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:14];
+ _detailTextFont = [[MDCTypography fontLoader] regularFontOfSize:14];
}
return _detailTextFont;
}

Powered by Google App Engine
This is Rietveld 408576698