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

Unified Diff: ios/chrome/browser/ui/reading_list/number_badge_view.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/reading_list/number_badge_view.mm
diff --git a/ios/chrome/browser/ui/reading_list/number_badge_view.mm b/ios/chrome/browser/ui/reading_list/number_badge_view.mm
index 3fd1bceaa81d767c56a599f97e27f70765d91765..97e86af4773a652c2042a83b07b216f9c28adc7e 100644
--- a/ios/chrome/browser/ui/reading_list/number_badge_view.mm
+++ b/ios/chrome/browser/ui/reading_list/number_badge_view.mm
@@ -8,7 +8,7 @@
#include "base/format_macros.h"
#import "ios/chrome/common/material_timing.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."
@@ -46,7 +46,7 @@ const CGFloat labelMargin = 2.5f;
UILabel* label = [[UILabel alloc] initWithFrame:CGRectZero];
_label = label;
- [label setFont:[[MDFRobotoFontLoader sharedInstance] boldFontOfSize:10]];
+ [label setFont:[[MDCTypography fontLoader] boldFontOfSize:10]];
[label setTranslatesAutoresizingMaskIntoConstraints:NO];
[label setTextColor:[UIColor whiteColor]];
[self addSubview:label];

Powered by Google App Engine
This is Rietveld 408576698