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

Unified Diff: ios/chrome/browser/ui/bookmarks/bookmark_collection_view_background.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/bookmarks/bookmark_collection_view_background.mm
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_collection_view_background.mm b/ios/chrome/browser/ui/bookmarks/bookmark_collection_view_background.mm
index 38461e5032e7d4874f8087e313f079939ab48d2a..32fb3659a7808ad74af92a2147072ca39493e9e1 100644
--- a/ios/chrome/browser/ui/bookmarks/bookmark_collection_view_background.mm
+++ b/ios/chrome/browser/ui/bookmarks/bookmark_collection_view_background.mm
@@ -4,7 +4,7 @@
#include "ios/chrome/browser/ui/bookmarks/bookmark_collection_view_background.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."
@@ -62,8 +62,8 @@ const CGFloat kImageViewOffsetFromText = 5.0;
- (UILabel*)newEmptyBookmarkLabel {
UILabel* label = [[UILabel alloc] initWithFrame:CGRectZero];
label.backgroundColor = [UIColor clearColor];
- label.font = [[MDFRobotoFontLoader sharedInstance]
- mediumFontOfSize:kEmptyBookmarkTextSize];
+ label.font =
+ [[MDCTypography fontLoader] mediumFontOfSize:kEmptyBookmarkTextSize];
label.textColor = [UIColor colorWithWhite:0 alpha:110.0 / 255];
label.textAlignment = NSTextAlignmentCenter;
return label;
« no previous file with comments | « ios/chrome/browser/ui/autofill/storage_switch_tooltip.mm ('k') | ios/chrome/browser/ui/bookmarks/bookmark_promo_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698